Jump to content

UNION command


TobesC

Recommended Posts

i know this is mysql, but can anyone find anything wrong with this query? the UNION command is the problem because i've tried all the SELECTS separately.

 

query is:

 

$result=mysql_query("SELECT * FROM `math` UNION SELECT * FROM `science` ORDER BY `timestamp` DESC");

 

mysql_fetch_array gives an invalid mysql resource.

 

any help is greatly appreciated - this is driving me nuts. . .

 

thanks.

Link to comment
https://forums.phpfreaks.com/topic/127260-union-command/
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.