=1) { $sql_to = "SELECT * FROM links WHERE id_links=$id_links"; $sql_res_to = mysql_query($sql_to); while ($sql_z_to = mysql_fetch_object($sql_res_to)) { //$id_link=$sql_z_to->id_links; $li_http=$sql_z_to->li_http; ?> id_links; $kl_ip_get=$sql_z_get->kl_ip; $kl_anzahl_get=$sql_z_get->kl_anzahl+1; // echo $kl_anzahl_get; // echo " ",$id_links_get; // echo " ",$id_link; if ($ip!='10.0.10.20') { if ($id_links_get==$id_links and $kl_ip_get!=$ip) { $sql = "UPDATE klick_statistik SET kl_anzahl='$kl_anzahl_get', kl_ip='$ip' WHERE id_links='$id_links_get'"; $erg = mysql_query($sql); } } } } if ($id_links_get=="") { $sql = "INSERT INTO klick_statistik (id_links) VALUES ('$id_links')"; $erg = mysql_query($sql); } ?>