Here is my error:
Invalid query (SELECT * FROM store ORDER BY rand() LIMIT 1) : Got error 28 from table handler
and here is my code:
$sql = "SELECT * FROM store ORDER BY rand() LIMIT 1";
if (!$result = mysql_query($sql)) {
print "Invalid query ($sql) : " . mysql_error();
exit;
}