how can i match 2 array? for example i have 2 array as below:
array1 : A1, A2, A3,
array2 : A1, A5, A6
array1 will be inside database. array2 is from input text, i want to store array2 into database, but before that i want to check whether there is have same value in the database or not. In this example, A1 is already occur in database, in this case i will prompt out an error msg to say that this transaction is failure.
that is the logic in my mind, but i got no ideal how to do that? how can i check if the value in array2 is match in array1?