17.10.2013, 18:29
Ok, im using a html page to show everything, and i included this code in my html page (full code):
But i dont get why it shows just:
"; echo "
"; } ?>"
Whats wrong?
Код:
<?php $query = mysql_query("SELECT * FROM `dsb_user_profiles` ORDER BY `id` DESC LIMIT 5"); while($row = mysql_fetch_assoc($query)) { $admin = $row['_user']; $querya = mysql_query("SELECT * FROM `dsb_user_photo` WHERE `_name` = '$admin'"); while($rowa = mysql_fetch_assoc($querya)) { $image = $rowa['photo']; } echo "$admin<br>"; echo "<img src=\"$image\"><br>"; } ?>
"; echo "
"; } ?>"
Whats wrong?