RE: [PHP-DB] Re: Parse Error
Actually this is incorrect also and will only result in another parse error ... you have (), which is fine, but then {)}, which doesn't make any sense to the parser. Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecommerce/ --- -Original Message- From: Alejandro Trujillo J. [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:15 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Re: Parse Error if ($packages == "1") { if ($airporttransfer == "car") {$airporttransfer2 = "12.00");} if ($airporttransfer == "bus") {$airporttransfer2 = "10.00");} if ($airporttransfer == "none"){$airporttransfer2 = "0.00");} } try to learn to use the TABS and the BRACES coz is good for you and for who are reading the CODE. -- Alejandro Trujillo J. Cube Systems LTDA. web : csltda.com Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: Parse error (a bit OT)
Glad you figured it out :) Cheers, Joe :) "Markus Lervik" <[EMAIL PROTECTED]> wrote in message 1014295168.26036.27.camel@hal9000">news:1014295168.26036.27.camel@hal9000... > On Thu, 2002-02-21 at 14:36, Lerp wrote: > > > Hi there :) I think you just might be missing two curly braces. Like below. > > if ($next_week) { > > while(date("W",mktime(0,0,0,$m,$d,$Y))==$week) { > > ...blablabla... > > } > > > > } > > Well, I intentionally left a few lines and curly brackets and stuff off > the mail, so that wasn't the problem. I've solved it though (sort of). > Turns out I was blind, after all. See, I use a Finnish layout on my > keyboard. I get curly brackets by pressing AltGr+7/AltGr+0. > > I seem to have accidentally held down AltGR and pressed space after a > curly bracket, which results in some sort of empty character, but a > character nevertheless. ;) I have the same problem in my gnome terminal > too, typing, for example 'ps -aux | grep whatever'. I get, every now and > then, complaints about bash not being able to find ' grep'. ;) > > Cheers, > Markus > > > > Can anyone tell me what's wrong with line 68? I get a parse error on > > > line 68 trying to run this. The strange thing is that it doesn't > > > complain about line 54. Either I'm blind, stupid, or there's somehing > > > very wrong here. I've checked above line 67 too, but there doesn't seem > > > to be any missing brackets or semicolons... > > > > > > Cheers, > > > Markus > > > > > > > > > > > > > > > > > > 53: if ($prev_week) { > > > 54:while(date("W",mktime(0,0,0,$m,$d,$Y))==$week) { > > > ...blababla... > > > } > > > > > > 67: if ($next_week) { > > > 68:while(date("W",mktime(0,0,0,$m,$d,$Y))==$week) { > > > ...blablabla... > > > } > > -- > Markus Lervik > Linux-administrator with a kungfoo grip > Vaasa City Library - Regional Library > [EMAIL PROTECTED] > +358-6-325 3589 / +358-40-832 6709 > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: Parse error (a bit OT)
On Thu, 2002-02-21 at 14:36, Lerp wrote: > Hi there :) I think you just might be missing two curly braces. Like below. > if ($next_week) { > while(date("W",mktime(0,0,0,$m,$d,$Y))==$week) { > ...blablabla... > } > > } Well, I intentionally left a few lines and curly brackets and stuff off the mail, so that wasn't the problem. I've solved it though (sort of). Turns out I was blind, after all. See, I use a Finnish layout on my keyboard. I get curly brackets by pressing AltGr+7/AltGr+0. I seem to have accidentally held down AltGR and pressed space after a curly bracket, which results in some sort of empty character, but a character nevertheless. ;) I have the same problem in my gnome terminal too, typing, for example 'ps -aux | grep whatever'. I get, every now and then, complaints about bash not being able to find ' grep'. ;) Cheers, Markus > > Can anyone tell me what's wrong with line 68? I get a parse error on > > line 68 trying to run this. The strange thing is that it doesn't > > complain about line 54. Either I'm blind, stupid, or there's somehing > > very wrong here. I've checked above line 67 too, but there doesn't seem > > to be any missing brackets or semicolons... > > > > Cheers, > > Markus > > > > > > > > > > > > 53: if ($prev_week) { > > 54:while(date("W",mktime(0,0,0,$m,$d,$Y))==$week) { > > ...blababla... > > } > > > > 67: if ($next_week) { > > 68:while(date("W",mktime(0,0,0,$m,$d,$Y))==$week) { > > ...blablabla... > > } -- Markus Lervik Linux-administrator with a kungfoo grip Vaasa City Library - Regional Library [EMAIL PROTECTED] +358-6-325 3589 / +358-40-832 6709 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: parse error
Rob, Can you show us a few lines before and after the script? The only thing that I can figure is that line 360 should end with a single quote and a semicolon (';), but it would be easier if we could see the code in context. Richard At 02:42 PM 12/13/2001, you wrote: > > > I've written a small script that processes a form from a webpage and > sends > > > the submitted data as an HTML e-mail that has the form all filled out > > > already. I've gotten smaller versions of this script to work without any > > > problem just to test the idea.I can't figure out why I'm now getting the > > > following error: > > > Parse error: parse error in > /home/httpd/cgi-bin/rday/lists/do_listapp.php3 > > > on line 358 > > > > > > Here is the offending code: > > > 353 if ($moderation == "no"){ > > > 354 $message .= " checked"; > > > 355 } > > > 356 > > > 357$message .= ' > > > 358>no > > > 359Answer "yes" if you want all postings to the list to be > > > sent to > > > 360 a moderator for approval before distribution to the > > > list. > > > > > > Any help would be greatly appreciated. Thanks! > > > > > > Rob Day > > > Web Team Leader > > > Texas State Library and Archives Commission > > > phone: 512.936.4463 fax: 512.463.5436 > > > [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!" -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] Re: parse error
your line 357 doesn't appear to have its semicolon... Rob Day wrote: > Sorry for not giving enough info. This is right in the middle of the script. > I do have the opening and closing tags. It must ne something else. > > -Original Message- > From: Matthew Crouch [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 13, 2001 4:04 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Re: parse error > > you haven't shut your script with the ?> before starting your HTML, near as > I > can figure it > > Rob Day wrote: > > > I've written a small script that processes a form from a webpage and sends > > the submitted data as an HTML e-mail that has the form all filled out > > already. I've gotten smaller versions of this script to work without any > > problem just to test the idea.I can't figure out why I'm now getting the > > following error: > > Parse error: parse error in /home/httpd/cgi-bin/rday/lists/do_listapp.php3 > > on line 358 > > > > Here is the offending code: > > 353 if ($moderation == "no"){ > > 354 $message .= " checked"; > > 355 } > > 356 > > 357$message .= ' > > 358>no > > 359Answer "yes" if you want all postings to the list to be > > sent to > > 360 a moderator for approval before distribution to the > > list. > > > > Any help would be greatly appreciated. Thanks! > > > > Rob Day > > Web Team Leader > > Texas State Library and Archives Commission > > phone: 512.936.4463 fax: 512.463.5436 > > [EMAIL PROTECTED] > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DB] Re: parse error
Not sure but if line 358 is... 358>no .. as it says below, then the ">" before the "no" needs a beginnnig to it somehow. It's like a html-tag that's only half baked. -- __ _Tyler Nally / /__ _(_)___ _ _ [EMAIL PROTECTED] / / _ \/ __ `/ / __ \/ __ \ / __ \/ ___/ __ `/ 317-860-3016 / / __/ /_/ / / /_/ / / / // /_/ / / / /_/ / American Legion Website /_/\___/\__, /_/\/_/ /_(_)/_/ \__, /http://www.legion.org // // > -Original Message- > From: Rob Day [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 13, 2001 5:37 PM > To: '[EMAIL PROTECTED]' > Subject: RE: [PHP-DB] Re: parse error > > > Sorry for not giving enough info. This is right in the middle > of the script. > I do have the opening and closing tags. It must ne something else. > > -Original Message- > From: Matthew Crouch [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 13, 2001 4:04 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Re: parse error > > > you haven't shut your script with the ?> before starting your > HTML, near as > I > can figure it > > Rob Day wrote: > > > I've written a small script that processes a form from a > webpage and sends > > the submitted data as an HTML e-mail that has the form all > filled out > > already. I've gotten smaller versions of this script to > work without any > > problem just to test the idea.I can't figure out why I'm > now getting the > > following error: > > Parse error: parse error in > /home/httpd/cgi-bin/rday/lists/do_listapp.php3 > > on line 358 > > > > Here is the offending code: > > 353 if ($moderation == "no"){ > > 354 $message .= " checked"; > > 355 } > > 356 > > 357$message .= ' > > 358>no > > 359Answer "yes" if you want all postings to > the list to be > > sent to > > 360 a moderator for approval before distribution to the > > list. > > > > Any help would be greatly appreciated. Thanks! > > > > Rob Day > > Web Team Leader > > Texas State Library and Archives Commission > > phone: 512.936.4463 fax: 512.463.5436 > > [EMAIL PROTECTED] > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DB] Re: parse error
Sorry for not giving enough info. This is right in the middle of the script. I do have the opening and closing tags. It must ne something else. -Original Message- From: Matthew Crouch [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 4:04 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Re: parse error you haven't shut your script with the ?> before starting your HTML, near as I can figure it Rob Day wrote: > I've written a small script that processes a form from a webpage and sends > the submitted data as an HTML e-mail that has the form all filled out > already. I've gotten smaller versions of this script to work without any > problem just to test the idea.I can't figure out why I'm now getting the > following error: > Parse error: parse error in /home/httpd/cgi-bin/rday/lists/do_listapp.php3 > on line 358 > > Here is the offending code: > 353 if ($moderation == "no"){ > 354 $message .= " checked"; > 355 } > 356 > 357$message .= ' > 358>no > 359Answer "yes" if you want all postings to the list to be > sent to > 360 a moderator for approval before distribution to the > list. > > Any help would be greatly appreciated. Thanks! > > Rob Day > Web Team Leader > Texas State Library and Archives Commission > phone: 512.936.4463 fax: 512.463.5436 > [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]