include("../global");
require("$path/common/connectdb.php3");
include("$path/current_clients/userpass.php3");
$sql="SELECT Tip,PersonsName,Email FROM Tips WHERE Status='Approved'";
if($result=mysql_db_query( $DatabaseName, $sql)){
if(mysql_num_rows($result)>0){
srand((double)microtime()*1000000);
$randval = rand(0,mysql_num_rows($result)-1);
$row=mysql_fetch_array($result);
for($i=1;$i<=$randval;$i++){
$row=mysql_fetch_array($result);
}
$output .= "Tip
".$row["Tip"]." - ".$row["PersonsName"]."
";
mysql_free_result($result);
}
}else{
$output="The system encountered an error while processing your request. Please press the back button of your browser and re-send your request.
Inconvenience Regretted.";
// echo mysql_error();
}
?>
include("$path/includes/header.inc") ?>
|
include("$path/includes/links.inc") ?>
|
|
include("$path/includes/right.inc") ?>
include("$path/includes/footer.inc") ?>