[PHP-DB] Re: Parse error
it might be a previous include() or require() or other command inserting external PHP-code is causing your problem.. but posting some code would help indeed.. grace michiel [EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am having a problem with a parse error. error: Parse error: parse error, unexpected ')' in /Users/timbest/Sites/cajunmikes/inc/menupage.php on line 75 Fatal error: Cannot instantiate non-existent class: menu in /Users/timbest/Sites/cajunmikes/TMPfj18cc2i20.php on line 7 The issue I am having is line 75 has no ')'. I am sure this error is causing the next fatal error. Anyone seen this before? I'm not sure what to do next since there is nothing on line 75... Thanks /T -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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
[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-DB] re: Parse Error
I'm sure by now this has already been answered, but just in case it hasn't been, you've got an extra ')' at the end of this line: r_num\); I hate to post this again but I have looked in a couple of php and mysql books but cannot seem to figure this one out. I am getting a parse error when trying to use php to delete records from a table. The error I am recieving is as follows Parse error: parse error in /path/to/php/done2.php3 on line 22 Here is the file that is giving me the error, any help would be great... I think that my problem is that I left out a variable to hold the $cars data but I am not sure. Here is the code... $db_name = test; $table_name = inventory; $connection = @mysql_connect(localhost, root, password) or die (Could not connect to database. Please try again later.); $db = @mysql_select_db($db_name,$connection) or die (Could not select database table. Please try again later.); $sql = DELETE FROM $table_name WHERE $cars = \$car_type\,\$car_model\,\$car_year\,\$car_price\,\$car_vin\,\$dl r_num\); $result = @mysql_query($sql, $connection) or die (Could not execute query. Any insight would be great... thanks again. Jas -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: Parse error (a bit OT)
Hi there :) I think you just might be missing two curly braces. Like below. if ($prev_week) { while(date(W,mktime(0,0,0,$m,$d,$Y))==$week) { ...blababla... } } if ($next_week) { while(date(W,mktime(0,0,0,$m,$d,$Y))==$week) { ...blablabla... } } Hope this helps, Joe :) Markus Lervik [EMAIL PROTECTED] wrote in message 1014290431.26064.10.camel@hal9000">news:1014290431.26064.10.camel@hal9000... Hello, 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 (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
[PHP-DB] Re: Parse error
You know this was a real bad stupid on my part. I saved the file in the wrong place. After moving the file to my web folder and not saving to the web folder I was using the original parse error file in the temp dir. I re-saved in the web folder and what do ya know it worked. Sorry for wasting all your time. I'll try to think better in the future. Thanks Jen Jennifer Downey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can someone tell me why I am getting a parse error in this little snip? ? $origVar = 100; echo POriginal value is $origVar/p; $origVar += 25; echo PAdded a value, now it's $origVar/p; $origVar -= 12; echo PSubtracted a value, now it's $origVar/p; $origVar .= chickens; echo PFinal answer: $origVar/p; ? Thanks in advance Jen Downey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[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 .= ' 358nobr 359pAnswer yes if you want all postings to the list to be sent to 360 a moderator for approval before distribution to the list./p 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]
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 .= ' 358nobr 359pAnswer yes if you want all postings to the list to be sent to 360 a moderator for approval before distribution to the list./p 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... 358nobr .. 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 .= ' 358nobr 359pAnswer yes if you want all postings to the list to be sent to 360 a moderator for approval before distribution to the list./p 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
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 .= ' 358nobr 359pAnswer yes if you want all postings to the list to be sent to 360 a moderator for approval before distribution to the list./p 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]