You are here: Re: My function returns true but my code does not execute « PHP Programming Language « IT news, forums, messages
Re: My function returns true but my code does not execute

Posted by ZeldorBlat on 10/31/05 07:22

>$query = "UPDATE
> about
> SET
> category_id = $category_id_new
> WHERE
> about_id = $_SESSION[about_id]";

I think you want "about_id = $_SESSION['about_id']"; (notice the quotes
around 'about_id'). To be safe, you can also write it like this:

$query = "UPDATE about SET catergory_id = $catergory_id_new
WHERE about_id = " . $_SESSION['about_id'];

 

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

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