| [ PHPXref.com ] | [ Generated: Sun Jul 20 17:10:51 2008 ] | [ DCP-Portal 6.1.1 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <? 2 include ("config.inc.php"); 3 4 $connection = @mysql_connect($dbhost, $dbuser, $dbpass) 5 or die ("Can not connect to database"); 6 $db = @mysql_select_db($dbname, $connection) 7 or die ("Can not select database."); 8 9 $result = mysql_query("SELECT * FROM $t_banners WHERE bid = '".$_GET["bid"]."'"); 10 while ($row = mysql_fetch_array($result)) { 11 $link_url = $row["url"]; 12 $link_hit = $row["click"]+1; 13 $result1 = mysql_query("UPDATE $t_banners SET click = '$link_hit' WHERE bid = '".$_GET["bid"]."'"); 14 } 15 16 header ("Location: ".$link_url.""); 17 @mysql_close($connection) 18 or die ("Can not close connection"); 19 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |