[prev in list] [next in list] [prev in thread] [next in thread]
List: php-i18n
Subject: Re: [PHP-I18N] Simple query problem
From: Vincent BRIET <v.briet () pulpstation ! fr>
Date: 2005-11-11 8:12:22
Message-ID: 43745266.9030300 () pulpstation ! fr
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic