Jump to content

selecting from multiple tables mysql php code


Lone_Ranger

Recommended Posts

$notificationing = mysql_query("SELECT * FROM notifications, inmymind, blogsnotification where nuser='$row[id]' || user='$joysong[friendid]' order by date DESC LIMIT 0,8");
while($notes = mysql_fetch_array($notificationing))
{

how would I select from multiple tables? I have different information I need to get from each table but need them listed after.

 

from notifications I want the result where nuser='$row[id]' results to be listed but in that same list I want the results from inmymind, blognotification where user='$joysong[friendid]'

 

I have tried to read up but do not understand any other solutions like Joins etc. is this something possible that I can do? or am I just going out of my mind?

 

 

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.