
Crew .NET |
|
Dit:
<?
mysql_query("UPDATE gastenboek SET naam= ".$naam.", email=".$email.", website=".$website.", bericht=".$bericht." WHERE id = ".$_GET['id']."") or die(mysql_error());
<? mysql_query("UPDATE gastenboek SET naam= ".$naam.", email=".$email.", website=".$website.", bericht=".$bericht." WHERE id = ".$_GET['id']."") or die(mysql_error());
Moet dit zijn:
<?
$id = $_GET['id']
mysql_query("UPDATE gastenboek SET naam = '" . $naam . "', email = '" . $email . "', website = '" . $website . "', bericht = '" . $bericht . "' WHERE id = " . $id . " ") or die (mysql_error ());
<? $id = $_GET['id'] mysql_query("UPDATE gastenboek SET naam = '" . $naam . "', email = '" . $email . "', website = '" . $website . "', bericht = '" . $bericht . "' WHERE id = " . $id . " ") or die (mysql_error ());
dubbele quotes rond strings --> '" ... "'
laat maar weten of het werkt;-)
edit: vinTage was me voor  |