I am using this query for a page similar to "instagram" (no I am not trying to make an instagram)
I am using this code for it
<?php
$query = mysql_query('SELECT * FROM camera_web ORDER BY url ASC LIMIT 50');
while($row = mysql_fetch_array($query)){
echo '<img src="'.$row['url'].'" valign="middle" />'.$row['username'].' <br><hr> <b>'.$row['user_id'].'</b> <i>'.$row['description'].'</i><br />';
}
?>
It shows pictures from the table "camera_web" but also the user_id from the table.
When someone publishes a photo I see the photo but not the username, instead it is the user_id, how can I do to make the query select the select "username" from my "users" table where ID = (user_id).
I can't explain any better, if you do not quite understand I'll advance.