Jump to content

MySQL Join


The Little Guy

Recommended Posts

Currently I'm learning Join, and when I do this I get this error:
[b]Unknown column 'display_images.owner_id' in 'field list'[/b]

Everything is spelled correctly, I copied and pasted.
Here is what I have, anything wrong?:
[code]$sql2=mysql_query("SELECT users.user_id, display_images.owner_id FROM users, default_images
WHERE
users.user_id='$row[friend_id]'
AND
display_images.owner_id='$row[friend_id]'")or die(mysql_error());[/code]
Link to comment
https://forums.phpfreaks.com/topic/29358-mysql-join/
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.