I'm trying to take information from one mysql table and put it into another.
It's VERY hard to explain but here's my code:
It's VERY hard to explain but here's my code:
PHP:
$con = include('dbc.php');
mysql_select_db("tb_begamer, $con");
$user = mysql_query("SELECT user FROM users");
$pic = mysql_query("SELECT picture FROM images WHERE username = $user");
echo('<img src="' . $pic . '" height="140" />');