RE: [PHP] Parse Error - Help? (AGAIN)

2002-04-25 Thread John Holmes
any info from failed scripts like path directories and file names... ---John Holmes... -Original Message- From: Maxim Maletsky (PHPBeginner.com) [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 11:19 AM To: 'Nathan'; 'PHP' Subject: RE: [PHP] Parse Error - Help? (AGAIN) You

Re: [PHP] Parse Error - Help?

2002-04-24 Thread Tyler Longren
Copy and paste the parse error into your e-mail. Also, try placing another } at the end of the code. If you're missing a closing bracket somewhere, that will take care of it. Tyler Longren Captain Jack Communications www.captainjack.com [EMAIL PROTECTED] - Original Message - From:

Re: [PHP] Parse Error - Help?

2002-04-24 Thread Jason Wong
On Thursday 25 April 2002 11:20, Jason Soza wrote: Can someone take a look at this code for me? I'm pretty new to programming, but looking at it I think it should work. I'm not saying there aren't plenty of errors, because I'm sure there are. I'm getting a parse error on the last line, and I

RE: [PHP] Parse Error - Help?

2002-04-24 Thread Jason Soza
:22 PM To: Jason Soza; [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error - Help? Copy and paste the parse error into your e-mail. Also, try placing another } at the end of the code. If you're missing a closing bracket somewhere, that will take care of it. Tyler Longren Captain Jack

RE: [PHP] Parse Error - Help? (AGAIN)

2002-04-24 Thread Jason Soza
! Jason -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 7:56 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Parse Error - Help? Found it - just added another curly brace to the end of the code and it worked, so I searched up from there and found

Re: [PHP] parse error= doc contains no data

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 01:24, Pedro Garre wrote: *This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, I set my own error handler as described in the documentation. It seems to work, as I can catch NOTICE errors. The problem is that PARSE errors do not display

RE: [PHP] parse error= doc contains no data

2002-04-19 Thread Johnson, Kirk
Try setting error_reporting = E_ALL ~E_NOTICE, or just E_ALL, in php.ini. Kirk -Original Message- From: Pedro Garre [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 11:25 AM To: php-general Subject: [PHP] parse error= doc contains no data I set my own error handler as

Re: [PHP] parse error= doc contains no data

2002-04-19 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* My php.ini has E_ALL and E_NOTICE I have tried several values with function error_reporting, including error_reporting(0) as recommended in the documentation. I am using the example of error handler function provided in

RE: [PHP] parse error= doc contains no data

2002-04-19 Thread Johnson, Kirk
Sorry, I missed the main point of your original question. No more ideas here. -Original Message- From: Pedro Garre [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 3:23 PM To: php-general Subject: Re: [PHP] parse error= doc contains no data *This message was transferred

Re: [PHP] Parse Error using an include class

2002-04-11 Thread Jason Wong
On Thursday 11 April 2002 14:30, Andrew Schoenherr wrote: [snip] Problem I have just started using classes, downloaded from www.thewebmasters.net web site. I am working on user authentication and I am getting a parse error when the page loads. Only since I started using the class has this

RE: [PHP] parse error, mysql select

2002-04-01 Thread Rick Emery
$query = SELECT DATE_FORMAT( exp_date, \%W, %M %d, %Y\) AS thedate from tifrequest where user='$user' limit 1,1; Missing escape \ in front of quotes -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 1:55 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] parse error, mysql select

2002-04-01 Thread Matt Friedman
It doesn't like the ; at the end of the statement. I noticed this a while ago. I'd prefer if it didn't choke on the ; but it seems to. It's probably more correct to have the ; there - I don't know why it chokes when going through php. Matt Friedman Web Applications Developer

RE: [PHP] parse error, mysql select

2002-04-01 Thread Rick Emery
He's not including the ; in the SELECT statement. The ; you're seeing is at end of the PHP statement -Original Message- From: Matt Friedman [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 2:02 PM To: 'ROBERT MCPEAK'; [EMAIL PROTECTED] Subject: RE: [PHP] parse error, mysql select

RE: [PHP] parse error, mysql select

2002-04-01 Thread ROBERT MCPEAK
Ack! Thanks. Rick Emery [EMAIL PROTECTED] 04/01/02 02:59PM $query = SELECT DATE_FORMAT( exp_date, \%W, %M %d, %Y\) AS thedate from tifrequest where user='$user' limit 1,1; Missing escape \ in front of quotes -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Parse Error Suggestions?

2002-03-18 Thread mnc
On Mon, 18 Mar 2002, Mike At Spy wrote: Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I'd guess you left a curly brace open. Try opening the file in an editor that lets you

RE: [PHP] Parse Error Suggestions?

2002-03-18 Thread Darren Gamble
Good day, It's not really possible to have an error reporting function on a parse error. If there is a parse error, then the program can not be run, period. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada

RE: [PHP] Parse Error Suggestions?

2002-03-18 Thread Mike At Spy
On Mon, 18 Mar 2002, Mike At Spy wrote: Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I'd guess you left a curly brace open. Try opening the file in an editor that lets

RE: [PHP] Parse Error Suggestions?

2002-03-18 Thread Ben Edwards
Not sure exactly what your code is but if you try to pass a literal where a reference type parameter is defined this produces a blank page. function test( $var ) { echo $var } if you call with test( hello ) you get NO output. Ben At 18:01 18/03/2002, Mike At Spy wrote: On Mon, 18 Mar

Re: [PHP] Parse Error Suggestions?

2002-03-18 Thread Jason Wong
On Tuesday 19 March 2002 02:01, Mike At Spy wrote: On Mon, 18 Mar 2002, Mike At Spy wrote: Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I'd guess you left a curly

Re: [PHP] Parse Error

2002-03-14 Thread RIVES Sergio
For ($i = 1; $i ($nbline+1); $i++) { // Line 17 not : For ($i = 1; $i ($nbline+1); i++) { // Line 17 hope it helps you SR Jérome Moisy a écrit : Hy,When I try to see my page I have this message and I don't know why.If someone can explain to me.Thank You Parse error: parse

Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-13 Thread Ceyhun Güler
Thanks Jan!!! It Works -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-12 Thread Ceyhun Güler
if I write directly localhost/myphp/resmigoster.php on his browser it response Warning: Undefined index: dir in c:\inetpub\wwwroot\kocak\resimgoster.php on line 1 Warning: Undefined index: res in c:\inetpub\wwwroot\kocak\resimgoster.php on line 3 if I write directly

Re: [PHP] parse error? how can I print spesific message for allerror mesage

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Ceyhun Güler wrote: than the script works like mine but I wonder to disable Warning: Undefined index: dir in c:\inetpub\wwwroot\kocak\resimgoster.php on line 1 response if someone directly enter localhost/myphp/resmigoster.php I want to say him that Access Denied Or

Re: [PHP] parse error? how can I print spesific message for allerror mesage

2002-03-12 Thread Lars Torben Wilson
On Tue, 2002-03-12 at 12:32, Ceyhun Güler wrote: if I write directly localhost/myphp/resmigoster.php on his browser it response Warning: Undefined index: dir in c:\inetpub\wwwroot\kocak\resimgoster.php on line 1 Warning: Undefined index: res in c:\inetpub\wwwroot\kocak\resimgoster.php on

Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-11 Thread Ceyhun Güler
? $dir = $HTTP_GET_VARS[dir]; $dir = str_replace( ,/,$dir); $res = $HTTP_GET_VARS[res]; ? title?=$res;?/title img src=?=$dir;?/?=$res;?.jpg /body My code is running now until if a link comes trough here like resimgoster.php?dir=main products imagesres=pic01 but if you write resimgoster.php to

Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-11 Thread Ceyhun Güler
Can AnyOne Help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-11 Thread hugh danaher
please try the following and let us know what the results are. title? echo $res; ?/title img src=? echo $dir; ?/? echo $res; ?.jpg /body - Original Message - From: Ceyhun Güler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 11, 2002 12:41 AM Subject: Re: [PHP] parse

Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-10 Thread hugh danaher
Your line 2 doesn't end with a semicolon and causes the parse error on the next line. I don't think you can suppress parse errors because your code isn't running yet. once your code is running you can append die() to any decision statement or you can append echo If (!isset($r)) die($r wasn't

Re: [PHP] Parse Error Line Numbers

2002-02-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Steven Walker declared Does anyone know how line numbers are figured? I get errors like the following: Parse error: parse error in /home/sites/site104/users/walker/web/admin/_fileutils.php on line 74 Is PHP preprocessing

Re: [PHP] Parse Error Line Numbers

2002-02-19 Thread Steven Walker
my take on it is that php reports the line it was on when it encountered the error with isn't the same as where you've made your mistake. That sometimes is the case, depending on the error/omission. However, in my case the error is reported on a line number -before- the actual line number

Re: [PHP] Parse Error

2002-02-12 Thread Bogdan Stancescu
What's line 19? Or, better yet, what's the previous statement? (it may span on several lines). Bogdan Jason Whitaker wrote: Ok I got this error: Parse error: parse error, expecting `','' or `';'' in c:\www\hosted\witakr\index.php on line 20 this is line 20: print (table border=0

Re: [PHP] Parse Error

2002-02-12 Thread DL Neil
Ok Jason, Parse error: parse error, expecting `','' or `';'' in c:\www\hosted\witakr\index.php on line 20 this is line 20: print (table border=0 align=center width=100% cellspacing=0 cellpadding=0); where? Possibly an 'imbalance' starting higher up the code, eg no closing

RE: [PHP] Parse Error

2002-02-12 Thread Matthew Walker
I'd definitely check Line 19. You probably forgot a ; Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Jason Whitaker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 4:01 PM To: [EMAIL PROTECTED] Subject: [PHP] Parse Error Ok I got this

RE: [PHP] Parse error

2002-02-04 Thread Johnson, Kirk
Check for a missing line or block terminator just above line 19. Kirk -Original Message- From: Ron Clark [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: [PHP] Parse error I am getting the following error trin to use the

Re: [PHP] Parse error: parse error in/test/put_file.php on line 14???

2001-12-18 Thread Andrey Hristov
The problem is here $pos = strrpos($file, \); must be $pos = strrpos($file, \\); Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Alex Elderson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 18,

Re: [PHP] parse error when requiring

2001-12-06 Thread Andrew Forgue
Maybe you could give a little more info on what the parse error actually says? On Thu, 2001-12-06 at 06:51, Oosten, Sjoerd van wrote: I have a question about require... I have a session_start() on top of every page and an if-else construction. ? session_start() if ($SessieEIA-Login ==

RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van
: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 757 ___ -Oorspronkelijk bericht- Van: Andrew Forgue [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 6 december 2001 16:13 Aan: Oosten, Sjoerd van CC: [EMAIL PROTECTED] Onderwerp: Re: [PHP] parse error

Re: [PHP] parse error when requiring

2001-12-06 Thread Jon Farmer
Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php on line 10 It's strange that line number 10 doesn't exist! Do you have an include statement in sessionstart.php? -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key

RE: [PHP] parse error when requiring

2001-12-06 Thread Johnson, Kirk
Forgue' Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP] parse error when requiring Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php on line 10 It's strange that line number 10 doesn't exist! On Thu, 2001-12-06 at 06:51, Oosten, Sjoerd van wrote: I have a question

RE: [PHP] parse error when requiring

2001-12-06 Thread jimtronic
You forgot the semicolon (;) after session_start() This works fine, but now i made the files sessionstart.php and bottom.php sessionstart.php -- ? session_start() if ($SessieEIA-Login == 1) { ? bottom.php -- ? } else {

RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van
4817 ZH BREDA Telefax: (076) 5 877 757 ___ -Oorspronkelijk bericht- Van: Jon Farmer [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 6 december 2001 16:49 Aan: Oosten, Sjoerd van; 'Andrew Forgue' CC: [EMAIL PROTECTED] Onderwerp: Re: [PHP] parse error

Re: [PHP] Parse Error

2001-10-29 Thread Alexander Weber
Just use var $VAL_ID; Names of variables always start with a $ sign. Alberto wrote: Parse error: parse error, expecting `T_VARIABLE' in /sdr/httpd/Prisa/DATA/private/libs/captura/valores.php on line 18 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] Parse Error

2001-10-29 Thread james . fairbairn
might be a syntax error in the .lib file you are including (missing ;, possibly)... let me know. -Original Message- From: Alberto [mailto:alberto arround [EMAIL PROTECTED]] Sent: 29 October 2001 10:14 To: [EMAIL PROTECTED] Subject: [PHP] Parse Error Parse error: parse error, expecting

RE: [PHP] Parse Error

2001-10-29 Thread james . fairbairn
oops, missed that one! -Original Message- From: Alexander Weber [mailto:[EMAIL PROTECTED]] Sent: 29 October 2001 10:08 To: Alberto Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error Just use var $VAL_ID; Names of variables always start with a $ sign. Alberto wrote: Parse

RE: [PHP] parse error AFTER end of included file??

2001-08-28 Thread Johnson, Kirk
You need to close off this bit of code with a brace '}': if (!isset($page_id)) { Kirk -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 9:34 AM To: [EMAIL PROTECTED] Subject: [PHP] parse error AFTER end of included file?? Hi,

RE: [PHP] parse error AFTER end of included file??

2001-08-28 Thread Jaxon
doh! thanks for spotting that Kirk! cheers, j -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 11:49 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] parse error AFTER end of included file?? You need to close off this bit of code

RE: [PHP] Parse Error

2001-08-15 Thread Jason Murray
?php $link = mysql_pconnect (kron, jutta, geheim) { or die (Connexion impossible); } ^ ^ Those two {}'s aren't needed for an or dosomething operation. Jason -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Justin Farnsworth
You are trying to add the output of a function call, called twice, BTW, to a string, apparantly. You don't saw what $tdStr is, really, in the scope. Jason Lustig wrote: This is really weird. Very, very, very weird. I have the following code in a script: if (!empty(trim($rowData[3]))) {

Re: [PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Delbono
Try this: $r = trim($rowData[3]); if ( !empty( $r ) ) { $tdStr.= trim($rowData[3]); } I tokk a look at the manual: 1. Note: empty() is a language construct. so: !empty is like to say !if or !while : so it's wrong- 2. Note that this is meaningless when used on anything which isn't a

Re: [PHP] Parse error..help!

2001-05-18 Thread Rasmus Lerdorf
Here is another error i keep on getting, this is suppose to send me an email each time someone enters in my website but i keep on gettong this error message: Parse error: parse error in /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8 I don't see anything wrong, please help. ?

Re: [PHP] Parse error..help!

2001-05-18 Thread Keith Ng
In reply to [EMAIL PROTECTED]: Return-Path: [EMAIL PROTECTED] Received: from toye.php.net (va.php.net [198.186.203.51]) by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4IDicZ30638 for [EMAIL PROTECTED]; Fri, 18 May 2001 21:44:39 +0800 Received: (qmail 23365

Re: [PHP] Parse error..help!

2001-05-18 Thread Keith Ng
In reply to [EMAIL PROTECTED]: Return-Path: [EMAIL PROTECTED] Received: from toye.php.net (va.php.net [198.186.203.51]) by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4IDicZ30638 for [EMAIL PROTECTED]; Fri, 18 May 2001 21:44:39 +0800 Received: (qmail 23365

Re: [PHP] Parse error..help!

2001-05-18 Thread infoz
It should be something like: function AccessHit() { ... } -- PHP General 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] Parse error..help!

2001-05-18 Thread elias
Were you a LISP programmer or something? Taline Makssabo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Here is another error i keep on getting, this is suppose to send me an email each time someone enters in my website but i keep on gettong this error

Re: [PHP] Parse error..help!

2001-05-18 Thread Greg K
Also take off the semicolon of the closing of the function } Taline Makssabo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Here is another error i keep on getting, this is suppose to send me an email each time someone enters in my website but i keep on gettong

RE: [PHP] Parse error help!

2001-05-18 Thread Sam Masiello
Perhaps you want something like this: $Msg = $H.$NL.$R.$NL.$D; HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Taline Makssabo [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 11:18 AM To: [EMAIL PROTECTED]

Re: [PHP] Parse error with simple script

2001-05-17 Thread Mohamed LRHAZI
Hi again, Ok, I wasnt that tired after all :) and had the belliant idea of loading my script in vi and lo and behold here is what I saw: $user| =| 'root' ; Nice, huh? This was generated by this cute editor called BlueFish.. no more bluefish for me. Mohamed~ Mohamed LRHAZI wrote:

Re: [PHP] Parse error with simple script

2001-05-17 Thread elias
hehe;) Mohamed LRHAZI [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi again, Ok, I wasnt that tired after all :) and had the belliant idea of loading my script in vi and lo and behold here is what I saw: $user| =| 'root' ; Nice, huh? This was generated

Re: [PHP] parse error is always on line 1 == error ?

2001-04-27 Thread Frank Joerdens
On Fri, Apr 27, 2001 at 08:49:46AM +0200, Jimmy Lantz wrote: Hi, I have a problem, that when I get a parse error it always says that it's on line 1 in this or that file. Where is the configuration option to set this right? When I had this problem it turned out that the files in question had

Re: [PHP] parse error is always on line 1 == error ?

2001-04-27 Thread John Platte
I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get parse errors on line 1 unless I remember to set line breaks to Unix \n (rather than Mac and Windows line endings, which use different characters). You may be running into a similar problem. Jimmy Lantz wrote: Hi, I have a

Re: [PHP] parse error is always on line 1 == error ?

2001-04-27 Thread Jimmy Lantz
Yes, thank you you're right this is exactly what it was, I used Dreamweaver on a mac to edit the files, but now if I encounter parse error I convert them with BBEdit. Thank you. Jimmy Lantz I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get parse errors on line 1 unless I

Re: [PHP] Parse Error for a weirdo!

2001-04-24 Thread Yasuo Ohgaki
Are you using short tag? or asp tag? What happen if you use ?php ?? Regards, -- Yasuo Ohgaki ouarz.net [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hiya, I am not a weirdo (at least I think so) ;) Considere this (Notice the line number):

Re: [PHP] Parse error - script help.

2001-04-16 Thread Brian Clark
Hi Dddogbruce, @ 10:58:47 PM on 4/16/2001, Dddogbruce (@home.com) wrote: Ok, I know it's messy - no, I don't care. :P Parse error: parse error in C:/XITAMI/owen/website/tss/guestbookSG.php on line 43 ... ? $space = " "; if( $submitfrm ) { echo "your entry will be added shortly.";

Re: [PHP] Parse error - script help.

2001-04-16 Thread Brian Clark
Hi Brian, @ 11:14:55 PM on 4/16/2001, Brian Clark wrote: fwrite( $fp, "fwrite( $fp, "table border=\"0\" cellpadding=\"0\" ^^^ Remove the quotation mark. Duh, Brian. You have an extra fwrite($fp) in there. -Brian -- PGP is spoken here: 0xE4D0C7C8 Please, DO

Re: [PHP] Parse error

2001-04-10 Thread elias
I think it is because you put a ';' in the isset() after the '}' i believe if you remove it it will work. -elias http://www.kameelah.org/eassoft ""Mike"" [EMAIL PROTECTED] wrote in message 9av0j6$h2k$[EMAIL PROTECTED]">news:9av0j6$h2k$[EMAIL PROTECTED]... Im getting a "missing )" error on line

Re: [PHP] Parse error after end of file

2001-04-09 Thread Alexander Wagner
titleAccessible Computers ?="$page_title"?/title DEFANGED_meta name=keywords content="stuff" DEFANGED_meta name=description content='? if ($description) { echo "$description"; } else { echo "Accessible Computers"; ?' Looks like you're missing a } here. regards Wagner

Re: [PHP] Parse error after end of file

2001-04-09 Thread Kurth Bemis
At 03:59 PM 4/9/2001, DRN wrote: you need to make sure that ALL your curly brackets are closed and that all lines that require semi-colons have them ~kurth Hi, I am trying to include a header to my document, I my problem is I keep getting a parse error on the line after the header ends. I

Re: [PHP] Parse error after end of file

2001-04-09 Thread DRN
Kurth Bemis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | At 03:59 PM 4/9/2001, DRN wrote: | you need to make sure that ALL your curly brackets are closed and that all | lines that require semi-colons have them | | ~kurth D'oh, I don't know how I didn't

Re: [PHP] parse error

2001-04-08 Thread Joe Stump
Worked for me, but I had to make sure that $messagearray was in fact an array. So wrap that block of code in this: if(is_array($messagearray) sizeof($messagearray)) { } --Joe On Mon, Apr 09, 2001 at 01:13:00AM +0100, kenny.hibs wrote: I am getting a parse error in the following line

Re: [PHP] parse error

2001-04-08 Thread Philip Olson
Three questions : 1. What is the parse error. 2. What line corresponds with the parse error. 3. What are the two lines above the line in #2 Regarding your code, it works (no parse error) for me. Two possible issues/guesses/warnings are : a. Foreach is php4+ (see manual for

Re: [PHP] parse error inside comment????

2001-03-20 Thread andrew
Thanks for the pointer! It was actually a missing quote " in the function declaration ABOVE the one that the error was being reported in. Quite strange. regards, jaxon On 3/20/01 4:09 PM, "Johnson, Kirk" [EMAIL PROTECTED] wrote: Look for a missing terminator (semi-colon or curly brace) just

Re: [PHP] parse error on line after last one???

2001-02-27 Thread Chris Aitken
At 06:31 PM 27/02/2001, Jaxon wrote: Hi all, Can anyone tell me why Im getting an unhelpful error when trying to pull up a file? The index.php Im calling is including a functions file functions.inc.php Im getting a parse error on line 144 but functions.inc.php only has 143 lines...! does

Re: [PHP] parse error on line after last one???

2001-02-27 Thread Simon Garner
From: "Jaxon" [EMAIL PROTECTED] Hi all, Can anyone tell me why Im getting an unhelpful error when trying to pull up a file? The index.php Im calling is including a functions file functions.inc.php Im getting a parse error on line 144 but functions.inc.php only has 143 lines...! does

RE: [PHP] parse error driving me nuts ...

2001-02-15 Thread Jon Haworth
Instead of if ((mysql_num_rows($result)) = 1) try if ((mysql_num_rows($result)) == 1) HTH Jon -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: 15 February 2001 15:34 To: [EMAIL PROTECTED] Subject: [PHP] parse error driving me nuts ... hi, can anyone help me spot

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread Ifrim Sorin
Try to use == instead of = Sorin Ifrim - Original Message - From: Andrew [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 5:33 PM Subject: [PHP] parse error driving me nuts ... hi, can anyone help me spot the parse error? It's throwing up on the first

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread John Vanderbeck
hi, can anyone help me spot the parse error? It's throwing up on the first "if" line, and for the life of me I cannot find it! :) tia, andrew ?php include("db_connect_params.inc"); $sql="select path from PHOTO where pid =1"; $link_id = mysql_connect($host, $usr, $pass); $result =

RE: [PHP] parse error driving me nuts ...

2001-02-15 Thread Andrew
PROTECTED]'; '[EMAIL PROTECTED]' Subject: RE: [PHP] parse error driving me nuts ... Instead of if ((mysql_num_rows($result)) = 1) try if ((mysql_num_rows($result)) == 1) HTH Jon -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: 15 February 2001 15

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread John Vanderbeck
Jon, John, Ifrim, the == worked ... thank you!! gotta read up on it now :) Cameron, dropping the extra () did not work :( thanks for the suggestions folks! andrew Remember that '=' means assign what is on the right to what is on the left, whereby '==' means is what is on the left equal

Re: [PHP] Parse error on blank line...

2001-02-06 Thread Toby Butzon
CTED]] Sent: Monday, February 05, 2001 05:38 PM To: April; Jackson, Michael; [EMAIL PROTECTED] Subject: RE: [PHP] Parse error on blank line... I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it,

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190 showmainscreen(); 191} 192} - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To:

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
argh, nm, I'm an idiot. - Original Message - From: "April" [EMAIL PROTECTED] To: "Jackson, Michael" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:31 PM Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of

RE: [PHP] Parse error on blank line...

2001-02-05 Thread johnny p.
: Monday, February 05, 2001 4:31 PM To: Jackson, Michael; [EMAIL PROTECTED] Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190

RE: [PHP] Parse error on blank line...

2001-02-05 Thread Jackson, Michael
PROTECTED] Subject: RE: [PHP] Parse error on blank line... I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. -Original

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
PROTECTED]; "Jackson, Michael" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:48 PM Subject: RE: [PHP] Parse error on blank line... Even if I was missing a brace, doesn't it seem odd that it would always give me a syntax error on the same line? It's a

Re: [PHP] Parse error

2001-01-23 Thread Liam Gibbs
Should probably put the whole thing. Why does this produce a parse error (I know that include statements do weird things to if structures): if($username != "") { code code code } else { include("file.php3"); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] Parse error

2001-01-23 Thread Matt Williams
Which line is producing the error?? M@ -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: 23 January 2001 17:32 To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse error Should probably put the whole thing. Why does this produce a parse error (I know

<    1   2   3