Jump to content

selecting from multiple tables mysql php code


Go to solution Solved by Barand,

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?

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.