Re: Why isn't now() working?

From: Date: Mon, 04 Sep 2000 14:47:25 +0000
Subject: Re: Why isn't now() working?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15137@lists.php.net to get a copy of this message
On Mon, 4 Sep 2000, William S Poarch wrote: > Any ideas why this code correctly enters everything but the date in the > "date" field? > > $sql = "INSERT INTO commercial_sent (address, date, first_topic, > second_topic, third_topic, company_pkey) VALUES > > ('$to','now()','$topic1','$topic2','$topic3','$usercorp')"; Remove you ' characters. ('$to',now(),'$topic1','$topic2','$topic3','$usercorp')"; -- patrik wallstrom | f o o d f i g h t tel: +46-8-6188428 | s t o c k h o l m gsm: +46-708405080 | - - - - - - - - - fax: +46-859827151 |

« previous php.general (#15137) next »