September 26, 2008 at 2:28 am
#779909
Inactive
try somthing like this
Code:
Start php
include(“../cpconfig.php”); // load db data for connection
if ( isset($HTTP_GET_VARS[‘id’]) || isset($HTTP_POST_VARS[‘id’]) ) // get ID # of casino
{
$id = ( isset($HTTP_POST_VARS[‘id’]) ) ? htmlspecialchars($HTTP_POST_VARS[‘id’]) : htmlspecialchars($HTTP_GET_VARS[‘id’]);
}
include(“../cpconfig.php”); // load db data for connection
if ( isset($HTTP_GET_VARS[‘id’]) || isset($HTTP_POST_VARS[‘id’]) ) // get ID # of casino
{
$id = ( isset($HTTP_POST_VARS[‘id’]) ) ? htmlspecialchars($HTTP_POST_VARS[‘id’]) : htmlspecialchars($HTTP_GET_VARS[‘id’]);
}
$update_clicks-mysql_query(“update p_casinos set bclick=bclick+1 where id=’$id'”); // increase counting f tracing clcks
$get_rows=mysql_query(“select * from p_casinos where id=’$id'”); // select casino from db
$get_url=@mysql_fetch_array($get_rows);
$clickurl=$get_url[url]; // get the url to redirect to
header(“Location: $clickurl”); // redirect to the casino
?>