Hallo,
ich verstehe die oben genannte Fehlermeldung nicht.
PHP
$update_preise = update_preise($mysqli);
if($update_hq_preise > 0) {
foreach($update_preise as $array){
$stmt1 = $mysqli->prepare("SELECT Nr, Netto FROM preise WHERE Nr=?");
$stmt1->bind_param("s", $array['artnr']);
$stmt1->execute();
$stmt1->bind_result($Nr, $Netto);
$stmt1->store_result();
$stmt1->fetch();
if($stmt1->num_rows() > 0) {
$Preis = str_replace(",", ".", $Netto);
$Preis = number_format($Preis, 2, ',', ' ');
} else {
$Preis = $array['preis'];
}
//echo $array['artnr'] . " - " . $array['preis'] . "- " . $Preis . "<br>";
if ($stmt = $mysqli->prepare("Update preise_Update SET preis=? WHERE artnr = ?"))
{
$preis = $Preis;
$artnr = $array['artnr'];
$stmt->bind_param("ss", $preis, $artnr);
$stmt->execute();
}
}
} else { echo "Keine Daten vorhanden"; }
Alles anzeigen
Nehme ich diesen Bereich wieder raus
PHP
if ($stmt = $mysqli->prepare("Update preise_Update SET preis=? WHERE artnr = ?"))
{
$preis = $Preis;
$artnr = $array['artnr'];
$stmt->bind_param("ss", $preis, $artnr);
$stmt->execute();
}
Und aktivere ich dieses
Funktioniert alles. Muss also am Update liegen. Nur ich sehe kein Fehler. Könnt ihr mir helfen?
Edit: Oder liegt es gar nicht am Script sondern wie lange der Server erlaubt das Script am Leben zu halten? Ich verstehe aber dieses hier nicht: http://stackoverflow.com/quest…rning-headers-php-fastcgi was müsste ich ändern?