Jump to content

SQL Query help


3raser

Recommended Posts

$verify = mysql_query("SELECT users.id,users.site_url,site.id,site.username FROM records,users WHERE users.id='$id'");

 

Above, I want to extract users.id,users.site_url from users WHERE users.id='$id', and then extract site.id,site.username where site.username = $username.

 

Is this possible? Or will I have to use multiple queries?

Link to comment
https://forums.phpfreaks.com/topic/230180-sql-query-help/
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.