Re: Help with parse error

From: Date: Wed, 20 Aug 2003 09:56:59 +0000
Subject: Re: Help with parse error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160151@lists.php.net to get a copy of this message
Hi, it's a common error... I think you have an unclosed string before in your script... example : $data='the data; .... $sDate = date('Y-m-d',time()); this code will produce an error on ligne with $sDate only becose the line with $data is unclosed ( missing the last ' ).. Take a look at your entire script... I'm sure it's this ;) Regards, P.E. Baroiller "James Johnson" <james@smb-studios.com> a écrit dans le message de news:000601c366e9$bad83310$3f36a8cf@jameslaptop... > Hi, > > I'm trying to figure out this error I'm getting in my code: > > Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9 > > This is the code on line 9: > > $sDate = date('Y-m-d',time()); > > Does this look valid? > Thanks, > James >

« previous php.general (#160151) next »