Re: My function returns true but my code does not execute
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: My function returns true but my code does not execute

From: ZeldorBlat <zeldorblat@gmail.com>
Date: Mon Oct 31 2005 - 06:22:17 CET

>$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'];
Received on Mon Nov 21 02:53:20 2005