Date: 10/15/01
- Next message: Harpreet: "[PHP-DB] Sub routines in php"
- Previous message: Russ Michell: "Re: [PHP-DB] mysql ID's"
- Next in thread: DL Neil: "Re: [PHP-DB] UPDATE table problem"
- Reply: DL Neil: "Re: [PHP-DB] UPDATE table problem"
- Reply: Jason Wong: "Re: [PHP-DB] UPDATE table problem"
- Maybe reply: Rick Emery: "RE: [PHP-DB] UPDATE table problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, everyone, again,
Consider the following piece of code:
-------------------------
$update_query =3D "update guestbook set last_access=3Dnow() where =
guest_id=3D'$result'";
$update_query =3D stripslashes($update_query);
echo $update_query;
echo "<BR><BR>";
$updated =3D mysql_query($update_query) or die(mysql_error());
if ($updated)
{
.............etc etc
}
--------------------------
When ran, it returns:
update guestbook set last_access=3Dnow() where guest_id=3D'Resource =
id#2'
The problem is that if($updated) returns TRUE, but the last_access field =
is not updated at all !!! :(((
Any ideas as far as the $update_query is concerned???
George
- Next message: Harpreet: "[PHP-DB] Sub routines in php"
- Previous message: Russ Michell: "Re: [PHP-DB] mysql ID's"
- Next in thread: DL Neil: "Re: [PHP-DB] UPDATE table problem"
- Reply: DL Neil: "Re: [PHP-DB] UPDATE table problem"
- Reply: Jason Wong: "Re: [PHP-DB] UPDATE table problem"
- Maybe reply: Rick Emery: "RE: [PHP-DB] UPDATE table problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

