Jump to content

fetching JOIN query


robert_gsfame

Recommended Posts

i have JOIN query like this

 

$query=mysql_query("SELECT * FROM table1 a JOIN table2 bl ON a.username=b.username WHERE a.id='ABC1' AND b.age='25'");

 

then i want to get the result from that query..using mysql_fetch_array()

how can i do it..

 

$array=mysql_fetch_array($query);

$status=$array['status'];

 

is that correct???

Link to comment
https://forums.phpfreaks.com/topic/202352-fetching-join-query/
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.