Jump to content

adding comments in queries?


Jaynesh

Recommended Posts

Instead of embeding the comments in the query, you could do something like:

 

$query = "SELECT $select " .
	 "FROM dbPosts " .                                //from
	 "LEFT JOIN dbUsers " .                           //left join
	 "ON dbPosts.username_id = dbUsers.id " . 
	 "LEFT JOIN dbFriends " .                         //left
	 "ON (dbPosts.username_id = dbFriends.my_id)";

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.