Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Parse error

 
   Database Forums (Home) -> PHP RSS
Next:  RDA question  
Author Message
Fernando Rodríguez

External


Since: Jan 16, 2006
Posts: 3



(Msg. 1) Posted: Thu Jan 19, 2006 11:55 am
Post subject: Parse error
Archived from groups: comp>lang>php (more info?)

Hi,

What's wrong with this line? I'm getting parse errors for it:

if ( empty($payment) || !is_numeric($payment) ) {

 >> Stay informed about: Parse error 
Back to top
Login to vote
Oli Filth

External


Since: Mar 01, 2005
Posts: 47



(Msg. 2) Posted: Thu Jan 19, 2006 11:55 am
Post subject: Re: Parse error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Fernando Rodríguez said the following on 19/01/2006 16:10:
>
> Hi,
>
> What's wrong with this line? I'm getting parse errors for it:
>
> if ( empty($payment) || !is_numeric($payment) ) {
>

Without any context (i.e. the preceding code), nor the actual error
message, it's pretty hard to say.

--
Oli

 >> Stay informed about: Parse error 
Back to top
Login to vote
zoe

External


Since: Jan 17, 2006
Posts: 1



(Msg. 3) Posted: Thu Jan 19, 2006 11:55 am
Post subject: Re: Parse error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

That line works fine when I try it. What's the exact error message? It
doesn't happen to be something on the previous line, like a missing
semicolon, does it?

Zoe.
 >> Stay informed about: Parse error 
Back to top
Login to vote
Good Man

External


Since: Sep 04, 2003
Posts: 99



(Msg. 4) Posted: Thu Jan 19, 2006 11:55 am
Post subject: Re: Parse error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Fernando Rodríguez wrote in


>
> Hi,
>
> What's wrong with this line? I'm getting parse errors for it:
>
> if ( empty($payment) || !is_numeric($payment) ) {

i'd wager the line before it is missing the ';' at the end
 >> Stay informed about: Parse error 
Back to top
Login to vote
Fernando Rodríguez

External


Since: Jan 16, 2006
Posts: 3



(Msg. 5) Posted: Thu Jan 19, 2006 2:55 pm
Post subject: Re: Parse error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Good,

> Fernando Rodríguez wrote in
>
>
>> Hi,
>>
>> What's wrong with this line? I'm getting parse errors for it:
>>
>> if ( empty($payment) || !is_numeric($payment) ) {
>>
> i'd wager the line before it is missing the ';' at the end

Bingo! Wink
 >> Stay informed about: Parse error 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
parse error or infinite loop? a blank screen, yet the php .. - Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString", $formName); // 06-22-07 - the next comm...

Parse error: parse error, unexpected T_STRING, expecting '.. - I'm getting the following error on this line, (last, first, address) VALUES('$last', '$first', '$address' ) ") Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/xxxxxx/public_html/process1.php on line 22 I copied the co...

parse XML into mysql - Hi i have an XML like this: <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <parlast modified="20/06/2008 12:03"> <nodo name="test" nodoid="3893"> ...

Error log. - Is there an error log in which PHP reports script related problems ? Peter

Error - I m getting this error while uploading an image through form copy(http://localhost/madame/uploads/alt/medium/zoom.gif) [function.copy]: failed to open stream: HTTP wrapper does not support writeable connections. in..
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]