Jump to content

[SOLVED] Subquery quick Problem


Asheeown

Recommended Posts

$Select = mysql_query("SELECT * FROM members WHERE id=(SELECT MAX(id) FROM members)") or die(mysql_error());

 

You have an error in your SQL syntax near 'SELECT MAX(id) FROM members)' at line 1

 

 

Please help, it's probably one simple mistake, but i've looked at it a hundred times and can't figure it out.

Link to comment
https://forums.phpfreaks.com/topic/56505-solved-subquery-quick-problem/
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.