Re: MySQL Update help needed
| From: | Joe Van Meer | Date: | Sun, 03 Feb 2002 02:13:46 +0000 |
| Subject: | Re: MySQL Update help needed | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16456@lists.php.net to get a copy of this message | ||
did test to see if $id was actual the value you were expecting? is $id an
auto increment field?
Chris Payne <chris@planetoxygene.com> wrote in message
news:000c01c1a23a$ef779900$0200a8c0@chris...
Hi there,
Can anyone see what is wrong with this query? I am trying to update some
fields, if I do an echo everything looks good but it doesn't update the
fields in the DB - am I missing something obvious here?
Thanks for your help
Chris
www.planetoxygene.com
$mysql_query ("UPDATE search6 SET email = '$email',description =
'$comments',category = '$category',url = '$url',type =
'$type',country =
'$country',rating = '$rating',fname = '$fname',state =
'$state',region =
'$region',city = '$city' WHERE id = '$id'");