Hi,
$aendern = "UPDATE
001\_dbtest
Set001\_name
= ?,001\_ort
= ?,001\_eintrag
= ? WHERE001\_id
= ?";
$kommando = $db->prepare($aendern);
$kommando->bind_param('sssi', $_POST['name'], $_POST['ort'], $_POST['eintrag'], $id);Dies bewirkt die Fehlermeldung "Fatal error: Call to a member function bind_param() on a non-object in ..."
Ich habe nun versucht, so wie mir es dedlfix beigebracht hat, eine Fehleranalyse zu betreiben. Deshalb habe ich mit "var_dump" bei den 4 Parameter/Variablen eine Kontrollausgabe gemacht.
Du hast aber vorher ueberhaupt nicht ueberprueft, *was* $db->prepare($aendern) dir zurueckgeliefert hat - ob also $kommando jetzt auch ein Objekt von einem Typ ist, der eine Methode bind_param besitzt.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“