Re: Simple query problem

Vincent BRIET <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <[email protected]>
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.

-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.