Nieuw lid |
|
Warning: Cannot modify header information - headers already sent by (output started at /home/kangemak/domains/kangemakkelijk.nl/public_html/partner/config.php:16) in /home/kangemak/domains/kangemakkelijk.nl/public_html/partner/in.php on line 27
dit krijg ik
hieronder de pagina als iemand de fout kan aanwijzen ben ik weer heel gelukkig.
<?
include('config.php');
if ($_GET['action'] == "tel")
{
$status = "in";
$dag = date("j", time());
$ip = "$REMOTE_ADDR";
$id = $_GET['id'];
$query = "SELECT * FROM uniekehits WHERE ip = '$ip' AND id='$id' AND dag='$dag' AND status='$status'";
$result = mysql_query($query);
if(mysql_num_rows($result) == 1 )
{
header("Location: $siteurl");
exit;
}
else
{
$query1 = "INSERT INTO uniekehits(ip, dag, id, status) VALUES('$ip', '$dag', '$id', '$status')";
$result1 = mysql_query($query1);
$query2 = "UPDATE partners SET inhits = inhits +1 WHERE id ='$id'";
$result2 = mysql_query($query2);
header("Location: $siteurl");
exit;
}
}
?>
<? include('config.php'); if ($_GET['action'] == "tel") { $status = "in"; $ip = "$REMOTE_ADDR"; $id = $_GET['id']; $query = "SELECT * FROM uniekehits WHERE ip = '$ip' AND id='$id' AND dag='$dag' AND status='$status'"; { } else { $query1 = "INSERT INTO uniekehits(ip, dag, id, status) VALUES('$ip', '$dag', '$id', '$status')"; $query2 = "UPDATE partners SET inhits = inhits +1 WHERE id ='$id'"; } } ?>
|