Jump to content

array_intersect


ktsirig

Recommended Posts

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...

 

Thanx a lot!

Link to comment
https://forums.phpfreaks.com/topic/2528-array_intersect/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.