";
mysql_select_db("rmlaceyp") or die(mysql_error());
echo "Connected to Database";
// Alter `cpg1411` to the table prefix you use
$sql = 'SELECT filename,filepath FROM `gallery` ORDER BY ctime DESC LIMIT 5;';
// Alter the number after LIMIT to define the number of pictures you want
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)) {
echo ' ';
}
?>
|