/* Copyright (c) - Hi Web Wiesbaden (www.phpscripte24.de) Bitte beachten Sie die Lizenzbestimmungen. */ @session_start(); include("config.inc.php"); mysql_connect("$dbserver","$dbuser","$dbpass"); mysql_select_db($dbdata); $result = mysql_query("SELECT * FROM ws_advert"); $cnt = mysql_num_rows($result); mt_srand((double)microtime()*1000000); $number = mt_rand(0,$cnt-1); $res = mysql_query("SELECT * FROM ws_advert LIMIT $number,1"); $bnr = mysql_fetch_array($res); $pview = $bnr[views] + 1; $iddb = $bnr[id]; mysql_query("UPDATE ws_advert SET views='$pview' WHERE id='$iddb'"); echo "
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
echo " Your Advertisement here.. "; ?> |
© Hi Web Wiesbaden All rights reserved |