MySQL Forums
Forum List  »  PHP

array intersect
Posted by: Kostas Tsirigos
Date: September 18, 2005 10:12AM

Hi, I have been messed up with array_intersect function.

I have two queries sent to Mysql :

Say:

$query1 ='SELECT ... FROM ...';
$query2 ='SELECT ... FROM';

$result1=mysql_query($query1);
$result2=mysql_query($query2);

$line1 = mysql_fetch_array($result1, MYSQL_ASSOC);
$line2 = mysql_fetch_array($result2, MYSQL_ASSOC);

How will I use array_intersect in order to retrieve the common values of the two arrays?
I seem to heve a bit of problem in the coding...

Options: ReplyQuote


Subject
Written By
Posted
array intersect
September 18, 2005 10:12AM
September 19, 2005 07:50AM
September 19, 2005 10:06AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.