// conection stuff
mysql_connect("serverIP here", "username here", "password here");
// select teh database
mysql_select_db("your database name here");
// query the database
$result = mysql_query("SELECT xsphoto FROM photos ORDER BY id DESC LIMIT 1,5", $db);
// fetch the rows... will be UP TO 5
while ($row = mysql_fetch_row($result))
{
// formatting here
// you only selected the xsphoto field from the database
echo $row['xsphoto'];
}
// close the database connection
mysql_close();
It doesn't get any more basic than that. If you feel you need additional help, I would suggest reading a basic tutorial on mySQL and PHP programming.
Kerry Kobashi
Kobashi Computing