heres the code i use in the page, works on local host but not on webserver, also if you put the SQL in phpadmin on the webserver it also returns only the first record no matter how many times you execute it, everything works fine on loacl host on my computer though.
$agasql->set_sql("SELECT * FROM tbltips ORDER BY RAND() LIMIT 1");
$agasql->set_qryid("2");
$query = $agasql->sql_execute();
if($query){
$tip = $agasql->sql_fetch_array($query);
}
echo $tip["tip_Desc"];
it display the first record in the database only