Folgendes Prob!
schaut mal
der Code ist:
wieso der fehler?
Das Skript selber scheint ja zu funzen!
schaut mal
der Code ist:
PHP-Code:
$id=$_GET['id'];
$db = MYSQL_CONNECT($db_server,$db_user,$db_passwort) or die(mysql_error());
mysql_select_db("lexmark",$db);
$result = mysql_query("SELECT * FROM counter_stand WHERE id='$id'") or die(mysql_error());
while($row=mysql_fetch_row($result)){
$counter='<table cellpadding="2" cellspacing="0" style="border:1px solid black;font-family:verdana,arial; font-size:8pt;"><tr>
<td bgcolor="#A5C1D1" style="border-bottom:1px solid black;"><b>Pageviews:</b></td></tr><tr>
<td bgcolor="#ffffff"><center>'.$row[1].'</center></td></tr>
</table>';
$count = $row[1] or die(mysql_error());
$count1 = $count+1 or die(mysql_error());
$result = MYSQL_QUERY("UPDATE counter_stand SET stand = '$count1' WHERE ID = '$id'");}
echo $counter;
Das Skript selber scheint ja zu funzen!
Kommentar