meine url-übergabe ist:
<script src="http://localhost/php-skripte/counter/counter_dso.php?id=11456&java=visits_all"></script>
mein script:
wieso funzt dann meine abfrage visit nicht mehr?
<script src="http://localhost/php-skripte/counter/counter_dso.php?id=11456&java=visits_all"></script>
mein script:
PHP-Code:
<?PHP
include("data/connect.php");
$id=$_GET['id'];
$db = MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die(mysql_error());
mysql_select_db("counter",$db);
$result = mysql_query("SELECT * FROM counter_stand WHERE id='$id'") or die(mysql_error());
while($row = mysql_fetch_row($result)){
$counter=$row[1]
}
$counter_stand=($counter+1);
$sql="UPDATE counter_aktiv SET stand = '$counter_stand' WHERE id = '$id'";
if ($java == "visit"){
echo ("document.write('$counter_stand');");
}
?>
Kommentar