Hallo Jasmin,
Sorry das hört sich sicher beklopt an, aber als fehlermeldung gibt es 2039 aus... ?? sturbt
Hier noch das ganze Script
<?
$verbindung = mysql_connect("localhost","root","");
mysql_select_db("ip_check", $verbindung);
$sql = "SELECT * FROM pcid";
$result = mysql_query($sql);
$num_pcid = mysql_num_rows($result);
echo "<table border=1><tr>";
echo "<td>PCID</td>";
echo "<td>Erfolgreich</td>";
echo "<td>Gesamt</td>";
echo "<td>IP</td>";
echo "<td>Neues Erfolgreich</td>";
echo "<td>Neues Gesamt</td></tr>";
for($j=0; $j < $num_pcid; $j++)
{
mysql_data_seek ($result, $j);
$pcid = mysql_fetch_array($result);
echo "<tr><td>$pcid[pcid_name]</td>";
echo "<td>$pcid[pcid_erfolgreich]</td>";
echo "<td>$pcid[pcid_gesamt]</td>";
echo "<td>$pcid[pcid_ip]</td>";
system("ping $pcid[pcid_ip]", $return_wert);
if($return_wert=="1"){
$return_wert = 0;
} else {
$return_wert = 1;
}
echo "<br><br><br>";
$neues_erfolgreich = $pcid[pcid_erfolgreich] + $return_wert;
$neues_gesamt = $pcid[pcid_gesamt] + 1;
echo "<td>$neues_erfolgreich</td>";
echo "<td>$neues_gesamt</td></tr>";
$sql = "UPDATE 'pcid' SET 'pcid_erfolgreich=$neues_erfolgreich'";
}
echo "</table><br><br><br>";
$sql = "UPDATE pcid SET pcid_erfolgreich=$neues_erfolgreich WHERE $pcid_name [LIMIT #]";
echo error_reporting(E_ALL);
?>
hier ist das ganze script....hoffentlich kannst du helfen
Hallo El Torito,
bau mal noch diese Funktion ein:
error_reporting(E_ALL);
dann siehst du mal was wirklich gemacht wird und was nicht geamcht wird :-)
Gruß Jasmin