You are here: Re: UPDATE multiple fields in one statement « PHP SQL « IT news, forums, messages
Re: UPDATE multiple fields in one statement

Posted by Bob Stearns on 10/09/71 11:29

charliefortune wrote:
> I would like to update two fields with a single query. Is this possible
> ? I am having no success with ;
>
> $query = "UPDATE product SET price=$newprice,tracking_url=$newtracker
> WHERE ASIN = $product_asin;";
>
That should work; I suspect a lack of apostrophes. Try

$query = "UPDATE product SET price=$newprice,tracking_url='$newtracker'
WHERE ASIN = $product_asin;";

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация