Re: Simple query problem
| From: | Vincent BRIET | Date: | Fri, 11 Nov 2005 08:12:22 +0000 |
| Subject: | Re: Simple query problem | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-890@lists.php.net to get a copy of this message | ||
Hello,
Ole G. wrote:
Hi there I do this: include "mydb.php"; $id = $_POST['id']; $virksomhed = $_POST['virksomhed']; $kontakt = $_POST['kontakt']; $email = $_POST['email']; $url = $_POST['url']; $text = $_POST['text']; $klub = $_POST['klub']; $by = $_POST['by']; $postnummer = $_POST['postnummer']; $adresse = $_POST['adresse']; mydb_connect(); mysql_query ("UPDATE vip_list SET virksomhed = '$virksomhed', kontakt = '$kontakt', email = '$email' url = '$url', kommentar = '$text', klub = '$klub', postnummer = '$postnummer', by = '$by' adresse = '$adresse' WHERE id =$id"); // Redirect the user to the comments page header ("Location: liste_virk.php"); Variables come from a form using post. But my SQL dosnt happen - nothing is updated. Is there something wrong with my query? This should be a good start :http://fr.php.net/manual/fr/function.mysql-error.php -- Vincent.