I use this code all the time, but now its not working.
There are 12 entries in the database, but for some reason its only selecting one.
My code:
PHP Code:<?php
include("includes/config.php");
$sql = mysql_query("SELECT * FROM `objects` WHERE `type` = 'image' ORDER BY `id` DESC");
$fetch = mysql_fetch_array($sql);
$url = $fetch["url"];
$id = $fetch["id"];
echo("<a href=\"?page=view&id=$id\"><img class=\"home\" src=\"images/uploads/$url\" border=\"0\" width=\"170\" height=\"170\"></a>");
?>





Reply With Quote


lol joke ..try a diffrent code is all i can say


