Hi, thanks for the reply.... i know im probably being thick but how does that fit in to the code....
$query = "SELECT * FROM gzdata1 ORDER by rand() LIMIT 0, 1;";
$numresults=mysql_query($query);
// get results
$result = mysql_query($query) or die("X Couldn't execute query");
// begin to show results set
$count = 1 + $s ;
//display the results returned
while ($row= mysql_fetch_array($result)) {
$url = $row["url"];
$name = $row["name"];
$info = $row["info"];
$town = $row["town"];
$simg = $row["simg"];
echo "$simg" ;
echo "<font size=2 face=Arial, Helvetica, sans-serif><strong><font color=000000>$name</font></strong></font><br><font size=1 face=Arial, Helvetica, sans-serif><font color=666666>$town</font></font>" ;
echo "<font size=1 face=Arial, Helvetica, sans-serif><font color=666666>$info</font><br>" ;
echo "<font size=1 face=Arial, Helvetica, sans-serif><font color=000000><a href=\"" . $row["url"] . "\" target=\"_blank\">Visit the website</a></font></font>";
$count++ ;
}