Re: I'm stuck!

From: Date: Mon, 22 Oct 2001 23:46:32 +0000
Subject: Re: I'm stuck!
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-13616@lists.php.net to get a copy of this message
Have you tried something like: $last_access=now(); $update_query = "UPDATE guestbook SET last_access='$last_access' WHERE guest_id='$guest_id'"; Otherwise... have you tried entering the query manually (e.g. with phpmyAdmin, etc.) using a relevant guest_id: UPDATE guestbook SET last_access='NOW()' WHERE guest_id='1' Robin "Jason Wong" <php-list@gremlins.com.hk> wrote in message news:php.db-13322@news.php.net... > On Monday 15 October 2001 19:35 pm, you wrote: > > > $update_query = "UPDATE guestbook SET last_access='NOW()' WHERE > > guest_id='$guest_id'"; <-----This thing refuses to play! > > > Can anyone, please, tell me why the above code doesn't do the update > > in the DB (mySQL)??? > > > try: NOW() without the quotes. > > $update_query = "UPDATE guestbook SET last_access=NOW() > WHERE guest_id='$guest_id'"; > > hth > -- > Jason Wong > Gremlins Associates > www.gremlins.com.hk

« previous php.db (#13616) next »