Re[2]: [PHP] Parse Error in my Mail Function -UPDATED

2002-06-07 Thread Stuart Dallas
On Friday, June 7, 2002 at 7:08:00 PM, you wrote: Lines 29, 30, and 31 //29 $headers = $from . \r\n . $bcc . \r\n //30 - The Next Line is where I'm getting the parse Error at: mail ($to, $setting_site_name, $mailpost, $headers) or $emailsuccess =Failure sending email.; //31 if

[PHP] parse error in line??

2002-05-29 Thread Webby
? require 'common.php'; function DisplayErrMsg($message) { printf (blockquoteblockquoteblockquoteh3fontcolor=\#cc\ %s/font/h3/blockquote/blockquote/blockqoute\n,$message); } function authenticateUser($user, $password) { global $host, $httphost, $user_db, $password_db, $db,

Re: [PHP] parse error in line??

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 19:17, Webby wrote: When starting a new topic please do not reply to an existing post. Start a new one. **/ when i run this script it's say parse error in this line 'i don't what is wrong with this line if (($row = mysql_fetch_array($result))

[PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
I get a parse error on this line $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1"; I believe that it is an error in the SQL statement Thanks in advance JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] parse error in line??

2002-05-29 Thread RIVES Sergio
Hi all, I would say as Jason, and I would add a little remark also even if that doesn't seem to be the pb you have : if (($row = mysql_fetch_array($result)) ($password==$row[password]) ($password ! = )) I hope it helps SR Jason Wong a écrit : On Wednesday 29 May 2002 19:17, Webby wrote:

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread 1LT John W. Holmes
Look for errors in the line above this one. PHP doesn't know what SQL is...it's just a string to PHP. ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 9:03 AM Subject: [PHP] Parse Error(newbie) I get

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Stuart Dallas
[EMAIL PROTECTED] wrote: $query = SELECT * FROM news ORDER BY id DESC LIMIT 1; I believe that it is an error in the SQL statement Nope, looks fine. Show us the previous few lines, the error is probably in those somewhere. -- Stuart -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared I get a parse error on this line $query = SELECT * FROM news ORDER BY id DESC LIMIT 1; I believe that it is an error in the SQL statement Nothing wrong with that. Let's have the whole error msg and

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
- From: Nick Wilson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 11:08 PM Subject: Re: [PHP] Parse Error(newbie) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared I get a parse error on this line $query = SELECT * FROM

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:13, [EMAIL PROTECTED] wrote: Here is the function: function print_new_story(){ $query = SELECT * FROM news ORDER BY id DESC LIMIT 1; $result = mysql_query($query); $num_results = mysql_num_rows($result); for ($i=0; $i $num_results; $i++) { $row =

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 11:11 PM Subject: Re: [PHP] Parse Error(newbie) On Wednesday 29 May 2002 21:13, [EMAIL PROTECTED] wrote: Here is the function: function print_new_story(){ $query = SELECT * FROM news ORDER BY id DESC LIMIT 1

RE: [PHP] Parse Error(newbie)

2002-05-29 Thread Niklas Lampén
mysql_query(delete from conf_event where time ( time() ); You're missing the ending there. Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 29. toukokuuta 2002 16:20 To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error(newbie) Line 81 is $query

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Jason Wong
] Subject: Re: [PHP] Parse Error(newbie) Line 81 is $query. I showed it in my first email. I suspect this line is the one causing the trouble(It is about four lines above the start of the function and is the only previous PHP statement) mysql_query(delete from conf_event where time ( time

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
Notepad at the moment as I can't change the settings of my computer due to lack of privilages - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 11:26 PM Subject: Re: [PHP] Parse Error(newbie) On Wednesday 29 May 2002 21:22

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:45, [EMAIL PROTECTED] wrote: Notepad at the moment as I can't change the settings of my computer due to lack of privilages You have my sympathy :) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

Re: [PHP] Parse Error(Newbie)

2002-05-27 Thread Miguel Cruz
On Mon, 27 May 2002 [EMAIL PROTECTED] wrote: I know it is probably something obvious but the following gives me a parse error and as a newbie I am having trouble locating it. $query = select * from news WHERE id = $_get['id']; A lot of people have answered this already, but just for a

RE: [PHP] Parse Error(Newbie)

2002-05-27 Thread John Holmes
, 2002 2:18 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error(Newbie) On Mon, 27 May 2002 [EMAIL PROTECTED] wrote: I know it is probably something obvious but the following gives me a parse error and as a newbie I am having trouble locating it. $query = select

Re: [PHP] Parse Error(Newbie)

2002-05-27 Thread Matt Giddings
try this: $query = select * from news WHERE id = '$_get['id']'; the double quote right before the $ is ending the string, from that point on everything is an error. Matt On Mon, 27 May 2002 [EMAIL PROTECTED] wrote: I know it is probably something obvious but the following gives me a parse

Re: [PHP] Parse Error(Newbie)

2002-05-27 Thread Matt Giddings
Another thing you may want to try is the following line: $query = select * from news WHERE id = ' . $_get['id'] . '; Matt On Mon, 27 May 2002 [EMAIL PROTECTED] wrote: I know it is probably something obvious but the following gives me a parse error and as a newbie I am having trouble

[PHP] Parse Error(Newbie)

2002-05-26 Thread webmaster
I know it is probably something obvious but the following gives me a parse error and as a newbie I am having trouble locating it. $query = "select * from news WHERE id = "$_get['id']""; JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Parse Error(Newbie)

2002-05-26 Thread Martin Towell
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 27, 2002 3:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Parse Error(Newbie) I know it is probably something obvious but the following gives me a parse error and as a newbie I am having trouble locating it. $query = select * from news

RE: [PHP] Parse Error(Newbie)

2002-05-26 Thread Peter
the line the message says it is.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, 27 May 2002 3:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Parse Error(Newbie) I know it is probably something obvious but the following gives me a parse error

RE: [PHP] Parse Error(Newbie)

2002-05-26 Thread David Freeman
-Original Message- I know it is probably something obvious but the following gives me a parse error and as a newbie I am having trouble locating it. $query = select * from news WHERE id = $_get['id']; -Original Message- Any time you end up with two characters together is a

Re: [PHP] Parse Error(Newbie)

2002-05-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared I get a parse error on line 114 can anyone see the problem? Sorry if it is something obvious :} for ($i=0; $i $num_results; $i++) 110. { 111. $row = mysql_fetch_array($result); 112. echo 'a

RE: [PHP] Parse Error(Newbie)

2002-05-23 Thread Brian McGarvie
why now just write: for ($i=0; $i $num_results; $i++) { $row = mysql_fetch_array($result); echo a href=\.$row['url'].\link text/a; -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 12:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error

Re: [PHP] Parse Error(Newbie)

2002-05-23 Thread Rénald CASAGRAUDE
On jeudi, mai 23, 2002, at 01:27 , Nick Wilson wrote: I get a parse error on line 114 can anyone see the problem? Sorry if it is something obvious :} for ($i=0; $i $num_results; $i++) 110. { 111. $row = mysql_fetch_array($result); 112. echo 'a href='; 113. echo $row['url']; 114. echo

[PHP] parse error

2002-04-30 Thread Jule
Hey guys, i'm writing this guestbook script for my site, and i'm getting a random parse error where i think everything is normal, it gives it on line 26 which is echo Your entry will be posted!; my script follows Jule --SCRIPT-- ?php $Guestbook[dateadd] = date(F j, Y H:i:s);

Re: [PHP] parse error

2002-04-30 Thread Miguel Cruz
You're missing a closing quote on the assignment for $Query2. Come on people, keep your eyes open. This is basic stuff. Doesn't take any special genius to count quotes and braces. miguel On Tue, 30 Apr 2002, Jule wrote: Hey guys, i'm writing this guestbook script for my site, and i'm

Re: [PHP] parse error

2002-04-30 Thread Steve Cayford
Looks like your problem is on line 24. See below. -Steve On Tuesday, April 30, 2002, at 12:48 PM, Jule wrote: Hey guys, i'm writing this guestbook script for my site, and i'm getting a random parse error where i think everything is normal, it gives it on line 26 which is echo Your

Re: [PHP] parse error

2002-04-30 Thread Jule
Thanks for that, yeah i should be more carefull before going to the list.. i'll watch out for it next time. Jule On Tuesday 30 April 2002 13:54, Miguel Cruz wrote: You're missing a closing quote on the assignment for $Query2. Come on people, keep your eyes open. This is basic stuff. Doesn't

Re: [PHP] parse error

2002-04-30 Thread Richard Emery
]'); $Query2 = INSERT into $TableName2 values('0', '$Guestbook[dateadd]'. '$Guestbook[name]', '$Guestbook[email]'); - Original Message - From: Jule [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 12:48 PM Subject: [PHP] parse error Hey guys, i'm writing this guestbook

Re: [PHP] parse error

2002-04-30 Thread Miguel Cruz
Message - From: Jule [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 12:48 PM Subject: [PHP] parse error Hey guys, i'm writing this guestbook script for my site, and i'm getting a random parse error where i think everything is normal, it gives it on line 26 which

[PHP] parse error after ?

2002-04-29 Thread Ironfroggy
I have a PHP script which gets a parse error on the last line (a blank line after the last ?). I really have no idea what could cause this. I checked for all my closing brackets. = Question __ Do You Yahoo!? Yahoo! Health - your guide to

Re: [PHP] parse error after ?

2002-04-29 Thread Justin French
That's the only likely solution -- missing }'s. Unless you're working on a mac, in which case the unix machine might be reading your entire file as one line, hence not giving you an acurate line for the error. I do my editing in BBEdit, which the option of saving all files in unix or windows or

Re: [PHP] parse error after ?

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 12:40, Ironfroggy wrote: I have a PHP script which gets a parse error on the last line (a blank line after the last ?). I really have no idea what could cause this. I checked for all my closing brackets. Check for missing braces } semicolons ;, they're the usual

RE: [PHP] parse error after ?

2002-04-29 Thread John Holmes
Check again. You're missing a closing bracket or an ending quote... something along those lines. ---John Holmes... -Original Message- From: Ironfroggy [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 9:41 PM To: [EMAIL PROTECTED] Subject: [PHP] parse error after ? I have

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

2002-04-25 Thread Ford, Mike [LSS]
-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 ext_valid

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

2002-04-25 Thread 1LT John W. Holmes
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] Sent: Thursday, April 25, 2002 12:06 AM Subject: RE: [PHP] Parse Error - Help

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

2002-04-25 Thread Jason Soza
) 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] Date: Thursday, April 25, 2002 5:35 am Subject: Re: [PHP] Parse Error - Help

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

2002-04-25 Thread Maxim Maletsky \(PHPBeginner.com\)
PHP listetiquette. Jason Soza Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins - Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] Date: Thursday, April 25, 2002 5:35 am Subject: Re: [PHP] Parse Error - Help

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

2002-04-25 Thread Philip Olson
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/) To

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

2002-04-25 Thread Nathan
I'll second that one... always better to code with register_globals = Off and E_ALL reporting level IMHO. # Nathan - Original Message - From: Philip Olson [EMAIL PROTECTED] To: Maxim Maletsky (PHPBeginner.com) [EMAIL PROTECTED] To stop receiving the messages from undefined variables

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

2002-04-25 Thread Jason Soza
Yeah, I think I'd rather fix the errors rather than just not see them. I'd still know they were there and it'd bug me! Thanks everyone for your help! Jason Soza - Original Message - From: Nathan [EMAIL PROTECTED] Date: Thursday, April 25, 2002 9:14 am Subject: Re: [PHP] Parse Error

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

2002-04-25 Thread 1LT John W. Holmes
it can be anything coming through the URL. Hope that helps. ---John Holmes... - Original Message - From: Jason Soza [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 12:33 PM Subject: Re: [PHP] Parse Error - Help? (AGAIN) Sorry for the length of the code, but I felt I

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

2002-04-25 Thread 1LT John W. Holmes
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! ;) Well said...don't hide and ignore the warnings...fix them. ---John

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

2002-04-25 Thread Maxim Maletsky \(PHPBeginner.com\)
- From: Nathan [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 7:15 PM To: PHP Subject: Re: [PHP] Parse Error - Help? (AGAIN) I'll second that one... always better to code with register_globals = Off and E_ALL reporting level IMHO. # Nathan - Original Message - From

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

2002-04-25 Thread Nathan
Message - From: Maxim Maletsky (PHPBeginner.com) [EMAIL PROTECTED] To: 'Nathan' [EMAIL PROTECTED]; 'PHP' [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 12:18 PM Subject: RE: [PHP] Parse Error - Help? (AGAIN) You know, I once said the same: better fix the notices and keep the code clean

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

2002-04-25 Thread Maxim Maletsky \(PHPBeginner.com\)
]; 'PHP' [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 12:18 PM Subject: RE: [PHP] Parse Error - Help? (AGAIN) You know, I once said the same: better fix the notices and keep the code clean. But as I've done several performance tests I came to a conclusion that there's no much difference

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

2002-04-25 Thread Nathan
: Maxim Maletsky (PHPBeginner.com) [EMAIL PROTECTED] To: 'Nathan' [EMAIL PROTECTED]; 'PHP' [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 12:58 PM Subject: RE: [PHP] Parse Error - Help? (AGAIN) I would agree that performance-wise, there may be little difference in how fast a script runs

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

[PHP] Parse Error - Help?

2002-04-24 Thread Jason Soza
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 can't see any reason for it. All of my ifs and

Re: [PHP] Parse Error - Help?

2002-04-24 Thread Tyler Longren
: Jason Soza [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 10:20 PM Subject: [PHP] Parse Error - Help? 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

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

[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* 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 anywhere, nor are catched by my error handler. The browser

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

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

2002-04-19 Thread Pedro Garre
~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 described in the documentation

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

[PHP] Parse Error using an include class

2002-04-11 Thread Andrew Schoenherr
Hello, This is my first question to the list, I have included as much information as I feel will help someone find a solution to my problem. Server: RedHat Linux 7.0, Kernel 2.2.16-22 PHP Version: 4.1.0 Apache Version: 1.3.12 Class name: class.Htpasswd.php3 Problem I have just started using

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

[PHP] parse error, mysql select

2002-04-01 Thread ROBERT MCPEAK
When I execute from browser I get a parse error, but when I enter the query directly into a MySQL command prompt I get a successful return. Can anybody see the problem with this code: $query = SELECT DATE_FORMAT( exp_date, %W, %M %d, %Y) AS thedate from tifrequest where

RE: [PHP] parse error, mysql select

2002-04-01 Thread Rick Emery
] parse error, mysql select When I execute from browser I get a parse error, but when I enter the query directly into a MySQL command prompt I get a successful return. Can anybody see the problem with this code: $query = SELECT DATE_FORMAT( exp_date, %W, %M %d, %Y

RE: [PHP] parse error, mysql select

2002-04-01 Thread Matt Friedman
www.SpryNewMedia.com -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday April 1, 2002 2:55 PM To: [EMAIL PROTECTED] Subject: [PHP] parse error, mysql select When I execute from browser I get a parse error, but when I enter the query directly into a MySQL command prompt I get

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
: Monday, April 01, 2002 1:55 PM To: [EMAIL PROTECTED] Subject: [PHP] parse error, mysql select When I execute from browser I get a parse error, but when I enter the query directly into a MySQL command prompt I get a successful return. Can anybody see the problem with this code

[PHP] Parse Error Suggestions?

2002-03-18 Thread Mike At Spy
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 looked on the PHP site for error reporting functions, but apparently they do not handle Parse Errors. Thanks, -Mike -- PHP

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
T2P 4L4 (403) 781-4948 -Original Message- From: Mike At Spy [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 10:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Parse Error Suggestions? Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling

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

[PHP] Parse Error

2002-03-14 Thread Jérome Moisy
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 error, expecting `')'' in liensfr.php on line 17 Source code : htmlheadLINK REL="stylesheet" HREF="mmenu.css"SCRIPT LANGUAGE="javascript"

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

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

2002-03-10 Thread Ceyhun Güler
Parse error: parse error in c:\inetpub\wwwroot\kocak\resimgoster.php on line 3 How can I print my own message like sorry not avaiable! for all error happening in my php file but I want to make it only for this file I don' t want to configure My IIS My script was which Michael Kimsal was

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

2002-03-10 Thread hugh danaher
set); If (!isset($r)) echo $r wasn't set; Hope this helps, Hugh - Original Message - From: Ceyhun Güler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 10, 2002 12:05 PM Subject: [PHP] parse error? how can I print spesific message for all error mesage Parse error: parse error

[PHP] Parse Error Line Numbers

2002-02-19 Thread Steven Walker
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 the code to remove comments and white space? The larger my code file, the more inaccurate the

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

[PHP] Parse Error

2002-02-12 Thread Jason Whitaker
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 align=center width=100% cellspacing=0 cellpadding=0); where? -- Jason Whitaker -- PHP General Mailing List (http://www.php.net/) To

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

[PHP] Parse error

2002-02-04 Thread Ron Clark
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, I am getting the following error trin to use the mysql_connect command in a script: Parse error: parse error in /usr/home/rclark/phptest/addrecord.php on line 19 Here is line 19: $connection = mysql_connect(localhost,phpkid,d0wn) or

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

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

2001-12-18 Thread Alex Elderson
Hi, What do i wrong? I get this err: Parse error: parse error in /test/put_file.php on line 14 put_file.php begin- ?php if ($submit) { include('include.php'); $pos = strrpos($file, \); if ($pos === FALSE) { $pos = strrpos($file, /); if ($pos === FALSE) {

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

2001-12-18 Thread Andrey Hristov
, 2001 11:26 AM Subject: [PHP] Parse error: parse error in/test/put_file.php on line 14??? Hi, What do i wrong? I get this err: Parse error: parse error in /test/put_file.php on line 14 put_file.php begin- ?php if ($submit) { include('include.php'); $pos = strrpos

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 {

<    1   2   3   4   >