> To stop receiving the messages from undefined variables add this at top
> of your files:
>
> error_reporting(55);
Or better yet, keep as you're doing and develop with E_ALL
and fix those E_NOTICE errors correctly! ;)
Regards,
Philip Olson
--
PHP General Mailing List (http://www.php.net/)
5);
> Thanks for your help, I'll work on my PHP listetiquette.
>
> Jason Soza
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
>
> - Original Message -
> From: "1LT John W. Holmes" <[EMAIL PRO
d 0. Correct? Then I can use if($id)
statements later on without having PHP return "Undefined Variable"
errors. Right?
Thanks for your help, I'll work on my PHP listetiquette.
Jason Soza
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
Dat
cho the value out, make
sure you've assigned it something.
if(!isset($id)) { $id = 0; }
Hopefully that's not too confusingit's hard to explain.
---John Holmes...
- Original Message -
From: "Jason Soza" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
> -Original Message-
> From: Jason Soza [mailto:[EMAIL PROTECTED]]
> Sent: 25 April 2002 05:06
>
> Yike, now I wish I hadn't found it:
>
> [Wed Apr 24 19:42:18 2002] [error] PHP Warning: Wrong
> datatype for second
> argument in call to in_array in beta_up.asp on line 61
57 function e
ppreciated!
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
24, 2002 7: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
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
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: "J
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 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 t
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 ha
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 dis
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 t
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]
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
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
www.SpryNewMed
$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: [
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
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
>
> 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
>
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
T2
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
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 e
Thanks Jan!!! It Works
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.p
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 Deni
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 "localhost/myphp/resmigoste
please try the following and let us know what the results are.
- Original Message -
From: "Ceyhun Güler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 12:41 AM
Subject: Re: [PHP] parse error? how can I print spesific message for all
Can AnyOne Help?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
My code is running now until if a link comes trough here like
"resimgoster.php?dir=main products images&res=pic01"
but if you write resimgoster.php to your adress bar without dir and res
this script write_>
Warning: Undefined index: dir in c:\inetpub\wwwroot\kocak\resimgoster.php on
line 1
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 se
> 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
numbe
-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 preprocess
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
I was missing a double-quote in a higher line... thanks guys
--
Jason Whitaker
"Dl Neil" <[EMAIL PROTECTED]> wrote in message
218c01c1b41b$8aaf1050$c200a8c0@jrbrown">news:218c01c1b41b$8aaf1050$c200a8c0@jrbrown...
: Ok Jason,
:
: > "Parse error: parse error, expecting `','' or `';'' in
: > c:\www
Ok Jason,
> "Parse error: parse error, expecting `','' or `';'' in
> c:\www\hosted\witakr\index.php on line 20"
>
> this is line 20:
>
> print (" cellpadding=0>");
>
> where?
Possibly an 'imbalance' starting higher up the code, eg no closing " somewhere?
=dn
--
PHP General Mailing List (
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 ("cellpadding=0>"
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 th
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, Decemb
0 730
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: [P
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
>> -
1 8:44 AM
> To: 'Andrew 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
> 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 avail
8 Telefoon: (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] p
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
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:
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
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
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 ne
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??
>
>
>
> $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
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 varia
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]))
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]
Subjec
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 g
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
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]
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 2336
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 2336
> 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 hel
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
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:
>
> Hel
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
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
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
Are you using short tag? or asp tag?
What happen if you use ""?
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):
>
Hi Brian,
@ 11:14:55 PM on 4/16/2001, Brian Clark wrote:
>> fwrite( $fp, "fwrite( $fp, " ^^^
> Remove the quotation mark.
Duh, Brian. You have an extra fwrite($fp) in there.
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.
Previously, Dddogbruce (@home.com) said:
>
> fwrite( $fp, "fwrite( $fp, "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]
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."
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 li
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
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
> Accessible Computers
>
>
Looks like you're missing a } here.
regards
Wagner
--
"I haven't committed a crime. What I did was fail to comply with the
law."
David Dinkins, New York City Mayor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
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 alternatives
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 lin
Look for a missing terminator (semi-colon or curly brace) just *above* the
line in the error message.
Kirk
> -Original Message-
> From: Jaxon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 20, 2001 1:18 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] parse error inside comment
>
> To
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) ju
From: "Jaxon" <[EMAIL PROTECTED]>
> Hi all,
>
> Can anyone tell me why I¹m getting an unhelpful error when
> trying to pull up a file?
>
> The index.php I¹m calling is including a functions file
functions.inc.php
>
> I¹m getting a parse error on line 144 but functions.inc.php only
> has 143 l
At 06:31 PM 27/02/2001, Jaxon wrote:
>Hi all,
>
>Can anyone tell me why I¹m getting an unhelpful error when trying to pull up
>a file?
>
>The index.php I¹m calling is including a functions file functions.inc.php
>
>I¹m getting a parse error on line 144 but functions.inc.php only has 143
>lines
> 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
8 AM
> To: '[EMAIL 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
>
> 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
>
>
> include("db_connect_params.inc");
> $sql="select path from PHOTO where pid =1";
> $link_id = mysql_connect($host, $usr, $pass);
> $result
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 fir
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 th
gt; "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
ROTECTED]>; "April" <[EMAIL 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
ackson, 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, and
start matching braces. I suggest getting a coffee or
ED]]
> Sent: 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
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
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
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
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 != "") {
} else {
include("file.php3");
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
PHP parse error, or SQL parse error?...
If it's PHP, you may need to look at the *previous* line, or even a bunch of
lines before that if you are missing a { or } or have messed up quotes.
If it's an SQL error, you probably don't have any data in
$HTTP_POST_VARS['UserName'] or $HTTP_POST_VARS['P
201 - 294 of 294 matches
Mail list logo