Re: [PHP] Parse error: syntax error, unexpected '>'

2009-09-23 Thread Fernando Castillo Aparicio
lighting if you haven't one. It would warn you from most of these mistakes. And an xhtml issue: to use an empty tag, you use and not De: Fernando Castillo Aparicio Para: Haig Davis ; php-general@lists.php.net Enviado: miércoles, 23 de septiembre, 2009

Re: [PHP] Parse error: syntax error, unexpected '>'

2009-09-23 Thread Ashley Sheridan
On Wed, 2009-09-23 at 07:18 -0700, Haig Davis wrote: > echo " ".$row['melID']." name="\".$row['melID].\""/input> "; You're escaping in the wrong places. The \ escapes the character following it, so what you are doing here, in line 2, is breaking out of the string with a regular " and then printing

Re: [PHP] Parse error: syntax error, unexpected '>'

2009-09-23 Thread Fernando Castillo Aparicio
You missed a double quote here: echo " \n"; De: Haig Davis Para: php-general@lists.php.net Enviado: miércoles, 23 de septiembre, 2009 16:18:17 Asunto: [PHP] Parse error: syntax error, unexpected '>' Good morning Everyone, I'm have trouble wi

RE: [PHP] parse error

2007-05-04 Thread Brad Sumrall
Maybe not The following passes me on without error, but does not actually log me on? Put in a fake name, and it still passes me on to the index page. I took this straight off the phpbb help files? Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

RE: [PHP] parse error

2007-05-04 Thread Brad Sumrall
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 04, 2007 9:43 PM To: Brad Sumrall Subject: Re: [PHP] parse error }else{ Brad Sumrall wrote: > Hi folk, I am writing a login in script and get the following: > > Parse error: parse error, unexpected T_ELSE in > /home/content/c/

RE: [PHP] parse error

2007-05-04 Thread Brad Sumrall
PROTECTED] Sent: Friday, May 04, 2007 9:43 PM To: Brad Sumrall Subject: Re: [PHP] parse error }else{ Brad Sumrall wrote: > Hi folk, I am writing a login in script and get the following: > > Parse error: parse error, unexpected T_ELSE in > /home/content/c/u/t/cuteirka/html/commonlogin_ne

Re: [PHP] Parse error on a basic call?

2007-04-28 Thread Edward Vermillion
On Apr 28, 2007, at 9:08 PM, Brad Sumrall wrote: $SESSION = get_include_contents'/phpbb/login.php'; I pulled this tright out of the text book. I am trying to pull a phpbb session on an outside page. Any suggestions? Here is the error! Parse error: parse error, unexpected T_CONSTANT

Re: [PHP] Parse error help.., thanks..

2007-03-30 Thread Ian
Thanks very much for the help, Davi,, no more such errors.. :) Ian "Davi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Em Sexta 30 Março 2007 18:55, Ian escreveu: > Parse error: syntax error, unexpected ';' in > /hxxx/x/domains/x.com/public_html/blog/labels.php on line 15 >

Re: [PHP] Parse error help.., thanks..

2007-03-30 Thread Ian
Hehe.., didn't i told i am poor in this, actually, never learn PHP before.. :) No more such errors anymore thank you Tijnema! =) Ian ""Tijnema !"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 3/30/07, Ian <[EMAIL PROTECTED]> wrote: >> Hi everyone, i am new to PHP, but not a

Re: [PHP] Parse error help.., thanks..

2007-03-30 Thread Tijnema !
On 3/30/07, Ian <[EMAIL PROTECTED]> wrote: Hi everyone, i am new to PHP, but not a programmer.., i got this php code to workout on something on my blog, but it seems that it gives me the following error: Parse error: syntax error, unexpected ';' in /hxxx/x/domains/x.com/public_html/blog/

Re: [PHP] Parse error help.., thanks..

2007-03-30 Thread Davi
Em Sexta 30 Março 2007 18:55, Ian escreveu: > Parse error: syntax error, unexpected ';' in > /hxxx/x/domains/x.com/public_html/blog/labels.php on line 15 > > http://.x.com/labels'); 2 define('SEARCH_DIR','//x/domains/x.com/public_html/blog/labels'); 3 define('THIS_FIL

Re: [PHP] parse error

2006-07-10 Thread Paul Novitski
At 08:11 AM 7/10/2006, Schalk wrote: I am getting the following error:* Parse error*: parse error, unexpected $ in */home/httpd/vhosts/demo.bdiverse.com/httpdocs/accessible/processlogin.php* on line *69 In my code the last line i.e. ?> is marked as line 69 I don't see anything wrong with t

Re: [PHP] parse error

2006-07-10 Thread Schalk
Thanks everyone. Jochem Maas wrote: Schalk wrote: Greetings All, Please have a look at the following code: your missing a closing brace some where - by the looks of things not in the code you sent. if ($numrows < 1) // the member does not exist { include ($adminfolderpath."/

Re: [PHP] parse error

2006-07-10 Thread Jochem Maas
Schalk wrote: > Greetings All, > > Please have a look at the following code: > your missing a closing brace some where - by the looks of things not in the code you sent. > if ($numrows < 1) > // the member does not exist > { >include ($adminfolderpath."/include/headeradmin.php"); >echo

Re: [PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Mark Sargent
Hi All, sorry, found it. Forgot the ; after $age++. Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Bagus Nugroho
how about like this --- $insert = "INSERT INTO age (age_label) VALUES ('$age')"; --- From: Mark Sargent [mailto:[EMAIL PROTECTED] Sent: Sat 03-Jun-2006 10:02 To: PHP List Subject: [PHP] Parse error: syntax error, unexpected '}' Hi All, can anone see what's w

Re: [PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Rick Emery
Quoting Mark Sargent <[EMAIL PROTECTED]>: Hi All, can anone see what's wrong with the below code? I get this error, *Parse error*: syntax error, unexpected '}' in */usr/local/apache2/htdocs/moviedata2.php* on line *18 * $age=1; while($age<=100) { $insert = "INSERT INTO age (age_label) VALUES

Re: [PHP] Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in

2006-05-25 Thread Mark Sargent
Mark Sargent wrote: Hi All, I get the error for line 15 for this code, "; 18 echo "$_SESSION['text']"; 19 echo ""; 20 ?> I have put ' ' quotes around the " " quotes for each font attribute so that the parser doesn't think the echo is finished too early. Is that wrong? I know that

Re: [PHP] Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in

2006-05-25 Thread Ryan Creaser
Mark Sargent wrote: Hi All, I get the error for line 15 for this code, "; 18 echo "$_SESSION['text']"; 19 echo ""; 20 ?> I have put ' ' quotes around the " " quotes for each font attribute so that the parser doesn't think the echo is finished too early. Is that wrong? I know t

Re: [PHP] Parse error: syntax error, unexpected ',' in

2006-05-23 Thread Mark Sargent
Chris wrote: Since there aren't actually 18 lines this isn't the real code.. true, as I only posted the php code The problem is here: echo $currentValue "\n"; it should be echo $currentValue . "\n"; or echo $currentValue , "\n"; thanx to all. The book is Beginning PHP, Apache, MySQL, We

Re: [PHP] Parse error: syntax error, unexpected ',' in

2006-05-23 Thread Chris
Mark Sargent wrote: Hi All, this code, "; echo "My favourite flavours are:"; foreach ($flavour as $currentValue) { //these lines will execute as long as there is a value in $flavour echo $currentValue "\n"; } ?> gives this, *Parse error*: syntax error, unexpected T_CONS

Re: [PHP] Parse error: syntax error, unexpected ',' in

2006-05-23 Thread Robin Vickery
On 24/05/06, Mark Sargent <[EMAIL PROTECTED]> wrote: Hi All, this code, "; echo "My favourite flavours are:"; foreach ($flavour as $currentValue) { //these lines will execute as long as there is a value in $flavour echo $currentValue "\n"; } ?> gives this, *Parse er

Re: [PHP] Parse error: syntax error, unexpected ',' in

2006-05-23 Thread Stut
Mark Sargent wrote: Hi All, this code, "; echo "My favourite flavours are:"; foreach ($flavour as $currentValue) { //these lines will execute as long as there is a value in $flavour echo $currentValue "\n"; } ?> gives this, *Parse error*: syntax error, unexpected T_CONS

Re: [PHP] Parse Error on SQL Insert [Solved]

2006-04-08 Thread Tom Chubb
the field in the DB isn't numeric this would be > > '{$_POST['model']}' > > > > Dan > > > > --- > > http://chrome.me.uk > > > > > > -Original Message- > > From: Joe Henry [mailto:[

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Joe Henry
field in the DB isn't numeric this would be > '{$_POST['model']}' > > Dan > > --- > http://chrome.me.uk > > > -Original Message- > From: Joe Henry [mailto:[EMAIL PROTECTED] > Sent: 07 April 2006 20:53 > To: php-gener

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Satyam
e" <[EMAIL PROTECTED]> To: "'Joe Henry'" <[EMAIL PROTECTED]>; ; <[EMAIL PROTECTED]> Sent: Friday, April 07, 2006 9:56 PM Subject: RE: [PHP] Parse Error on SQL Insert Backticks (`) encapsulate table or database names I was thinking maybe if t

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Ray Hauge
On Friday 07 April 2006 12:56, Chrome wrote: > Of course if the field in the DB isn't numeric this would be > '{$_POST['model']}' > > Dan That's what I was thinking. Even if data is a number, I still generally put quotes around it to make sure I don't have an issue. -- Ray Hauge Programmer/Sys

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread John Nichel
Tom Chubb wrote: Complete code... $insertSQL = "INSERT INTO cars (model, `year`, details, price, image1, image2, image3, forsale) VALUES ($_POST['model'], $_POST['year'], $_POST['details'], $_POST['price'], $_FILE['image']['name'][0], $_FILE['image']['name'][1], $_FILE['image']['name'][2], $

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Brad Bonkoski
thanks for the clarification, I guess the other solution would be to avoid using names with special meaning for column names... -B Ray Hauge wrote: On Friday 07 April 2006 12:53, Joe Henry wrote: On Friday 07 April 2006 1:37 pm, Tom Chubb wrote: $insertSQL = "INSERT INTO cars (model,

RE: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Chrome
#x27;]}' Dan --- http://chrome.me.uk -Original Message- From: Joe Henry [mailto:[EMAIL PROTECTED] Sent: 07 April 2006 20:53 To: php-general@lists.php.net; [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error on SQL Insert On Friday 07 April 2006 1:37 pm, Tom Chubb wrote: &

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Ray Hauge
On Friday 07 April 2006 12:53, Joe Henry wrote: > On Friday 07 April 2006 1:37 pm, Tom Chubb wrote: > > $insertSQL = "INSERT INTO cars (model, `year`, details, price, image1, > > Not sure if this is your problem, but those look like backticks around year > instead of single quotes. Should there eve

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Tom Chubb
Complete code... http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Untitled Document Model: Year: Details: Price: Image1:

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Joe Henry
On Friday 07 April 2006 1:37 pm, Tom Chubb wrote: > $insertSQL = "INSERT INTO cars (model, `year`, details, price, image1, Not sure if this is your problem, but those look like backticks around year instead of single quotes. Should there even be quotes there? HTH -- Joe Henry www.celebrityacces

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Brad Bonkoski
why do you have single quotes around year? -B Tom Chubb wrote: I'm working on an insert record page with a multiple file upload script of which I understand the fundamentals. However, on submission I am getting the following error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPAC

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread John Nichel
Tom Chubb wrote: I'm working on an insert record page with a multiple file upload script of which I understand the fundamentals. However, on submission I am getting the following error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STR

RE: [PHP] Parse Error

2006-02-21 Thread Emmanuel Job
o: php-general@lists.php.net Subject: Re: [PHP] Parse Error Ray Cantwell wrote: > Hi all, > I am a noob and super confused right now. I have some really simple code > and i am getting an error that reads: > *Parse error*: syntax error, unexpected T_VARIABLE in > */var/www/mysql_up.php*

Re: [PHP] Parse Error

2006-02-21 Thread benifactor
- Original Message - From: "Ray Cantwell" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 21, 2006 1:27 PM Subject: [PHP] Parse Error > Hi all, > I am a noob and super confused right now. I have some really simple code > and i am getting an error that reads: > *Parse error*: syntax er

Re: [PHP] Parse Error

2006-02-21 Thread John Nichel
Ray Cantwell wrote: Hi all, I am a noob and super confused right now. I have some really simple code and i am getting an error that reads: *Parse error*: syntax error, unexpected T_VARIABLE in */var/www/mysql_up.php* on line here is the code: Test MySQL Terminate your php lines with a

Re: [PHP] Parse Error

2006-02-21 Thread Ray
Jay Blanchard wrote: [snip] I am a noob and super confused right now. I have some really simple code and i am getting an error that reads: *Parse error*: syntax error, unexpected T_VARIABLE in */var/www/mysql_up.php* on line here is the code: Test MySQL Thanks. did i say i was a n00b

Re: [PHP] Parse Error

2006-02-21 Thread Claudio Corlatti
Hi, you need to finish every line with ; $host="localhost" ; $user="ray" ; $password="*" ; Bye Ray Cantwell wrote: Hi all, I am a noob and super confused right now. I have some really simple code and i am getting an error that reads: *Parse error*: syntax error, unexpected T_VARIABLE in

Re: [PHP] Parse Error

2006-02-21 Thread Kevin Waterson
This one time, at band camp, Ray Cantwell <[EMAIL PROTECTED]> wrote: > $host="localhost" > $user="ray" > $password="*" these need to be terminated with ; $host = 'localhost'; etc etc Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed

Re: [PHP] Parse Error

2006-02-21 Thread Ray Hauge
On Tuesday 21 February 2006 14:27, Ray Cantwell wrote: > Hi all, > I am a noob and super confused right now. I have some really simple code > and i am getting an error that reads: > *Parse error*: syntax error, unexpected T_VARIABLE in > */var/www/mysql_up.php* on line > > here is the code: > > >

RE: [PHP] Parse Error

2006-02-21 Thread Jay Blanchard
[snip] I am a noob and super confused right now. I have some really simple code and i am getting an error that reads: *Parse error*: syntax error, unexpected T_VARIABLE in */var/www/mysql_up.php* on line here is the code: Test MySQL http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Petar Nedyalkov
On Tuesday 26 April 2005 11:10, Mark Sargent wrote: > Prathaban Mookiah wrote: > >Mark, > > > >Back to basics budy!! > > > >> 25 if ($myrow = mysql_fetch_array($result)); { > > > >should be > > > >> 25 if ($myrow = mysql_fetch_array($result)) { > > > >Note that extra semicolon? > > > > > >P

Re: [PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Mark Sargent
Prathaban Mookiah wrote: Mark, Back to basics budy!! 25 if ($myrow = mysql_fetch_array($result)); { should be 25 if ($myrow = mysql_fetch_array($result)) { Note that extra semicolon? Prathap -- Original Message --- From: Mark Sargent <[EMAIL PROTECTED]> To:

Re: [PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Prathaban Mookiah
Mark, Back to basics budy!! > 25 if ($myrow = mysql_fetch_array($result)); { should be > 25 if ($myrow = mysql_fetch_array($result)) { Note that extra semicolon? Prathap -- Original Message --- From: Mark Sargent <[EMAIL PROTECTED]> To: php-general@lists.php.net

Re: [PHP] parse error, unexpected T_CLASS

2005-04-20 Thread Kim Briggs
On 4/20/05, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Dasmeet Singh wrote: >> BTW.. pls suggest some good editor.. I use notepad currently.. > http://www.php-editors.com/ > http://www.google.com/search?hl=en&lr=&q=good+editor+for+php&btnG=Search > > choose one. > This can take a long time, I k

Re: [PHP] parse error, unexpected T_CLASS

2005-04-20 Thread Jochem Maas
Dasmeet Singh wrote: ... Get some decent editor with syntax highlighting ditto. :-) Thanks.. That was really silly.. BTW.. pls suggest some good editor.. I use notepad currently.. OFFS. http://www.php-editors.com/ http://www.google.com/search?hl=en&lr=&q=good+editor+for+php&btnG=Search choose one.

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jason Barnett
Dasmeet Singh wrote: > Jay Blanchard wrote: >> [snip] >> echo (" $row[1] Location- $row[4] >> Property Type- $ptypeMin Price- $row[9] "); >> >> it gives an error.. >> >> Parse error: parse error, unexpected T_CLASS in >> /home/real/public_html/functions.php on line 162 >> >> Any idea..why? Prob

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Marek Kilimajer wrote: Dasmeet Singh wrote: Jay Blanchard wrote: > [snip] > echo (" $row[1] Location- $row[4] > Property Type- $ptypeMin Price- $row[9] "); > > it gives an error.. > > Parse error: parse error, unexpected T_CLASS in > /home/real/public_html/functions.php on line 162 >

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Marek Kilimajer
Dasmeet Singh wrote: Jay Blanchard wrote: > [snip] > echo (" $row[1] Location- $row[4] > Property Type- $ptypeMin Price- $row[9] "); > > it gives an error.. > > Parse error: parse error, unexpected T_CLASS in > /home/real/public_html/functions.php on line 162 > > Any idea..why? Probab

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Jay Blanchard wrote: > [snip] > echo (" $row[1] Location- $row[4] > Property Type- $ptypeMin Price- $row[9] "); > > it gives an error.. > > Parse error: parse error, unexpected T_CLASS in > /home/real/public_html/functions.php on line 162 > > Any idea..why? Probably any stupid mistake .. :( > [

RE: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jay Blanchard
[snip] echo (" $row[1] Location- $row[4] Property Type- $ptypeMin Price- $row[9] "); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any idea..why? Probably any stupid mistake .. :( [/snip] Takes the parentheses out. ec

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Marek Kilimajer
Dasmeet Singh wrote: Hi! When i try to run the following line: echo (" $row[1] Location- $row[4] Property Type- $ptypeMin Price- $row[9] "); The above line is fine. Check the lines above. it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php

Re: [PHP] Parse Error on mysql_query

2005-04-16 Thread Philip Hallstrom
Add a ; to the end of line 16. On Sun, 17 Apr 2005, Bagus Nugroho wrote: Hi, I'm beginning to learn PHP/MySQL, i have problem 'parse error' when using 'mysql_query' although it was simple code, like this : = 1 Parse error: parse error, expecting `','' or `';'' in d:\www\test\refer1.php on l

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
Hello, Sorry about that. I took the source down after I solved the problem. The problem was a nasty type of syntax error caused by PHP implementation of HEREDOC string delimiting. I was using HEREDOC to stuff multiple lines of HTML into a string, in several places in my file, which is all fin

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jason Barnett
Jeff Schmidt wrote: > Hello, > I've made the source available at: > http://www.weldingconsultants.com/wcapp/admin.phps 404 error when I just tried. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM |

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
Hello, I've made the source available at: http://www.weldingconsultants.com/wcapp/admin.phps Chris W. Parker wrote: print '\n"; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP parser finally gets screwed up. Yeah, that is what I was thinking too.

[PHP] (SOLVED) Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-15 Thread Jeff Schmidt
Ok, well the mystery is solved. Earlier in the script, I had used HEREDOC string delimiting to output some html blocks (I feel, asthetically, that HEREDOC is more readable than escaping out to HTML then back into PHP). Somehow, and I'm not sure how, because I don't remember typing the spaces, b

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Dan Tappin
Why not make it simple?: // end PHP code ?> ]' value='true'> Dan T On Mar 14, 2005, at 3:58 PM, Jeff Schmidt wrote: Hello, I'm beating my head, and can't figure out *WHY* PHP is giving me this error. The full error text is: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, exp

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Jason Barnett on Monday, March 14, 2005 3:57 PM said: > Chris W. Parker wrote: >> Chris W. Parker <> >> on Monday, March 14, 2005 3:15 PM said: >> >> Line 82 is: print '>>> $row["profileID"] . ']' . "' value='true'/>\n"; >>> >>> Very likely the probl

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Andre Dubuc
On Monday 14 March 2005 06:22 pm, Chris W. Parker wrote: > Chris W. Parker <> > > on Monday, March 14, 2005 3:15 PM said: > >> Line 82 is: > >> print ' >> $row["profileID"] . ']' . "' value='true'/>\n"; > > > > Very likely the problem is not on line 82, but rather before it. Line > > 82 is just

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Jason Barnett
Chris W. Parker wrote: > Chris W. Parker <> > on Monday, March 14, 2005 3:15 PM said: > > >>>Line 82 is: >>>print '>>$row["profileID"] . ']' . "' value='true'/>\n"; >> >>Very likely the problem is not on line 82, but rather before it. Line >>82 is just where the PHP parser finally gets screwed

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread M. Sokolewicz
Chris W. Parker wrote: Chris W. Parker <> on Monday, March 14, 2005 3:15 PM said: Line 82 is: print '\n"; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP parser finally gets screwed up. Ohh .. and if i read it more fully the first time I would ha

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Chris W. Parker <> on Monday, March 14, 2005 3:15 PM said: >> Line 82 is: >> print '> $row["profileID"] . ']' . "' value='true'/>\n"; > > Very likely the problem is not on line 82, but rather before it. Line > 82 is just where the PHP parser finally gets screwed up. Ohh .. and if i read it m

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Jeff Schmidt on Monday, March 14, 2005 2:58 PM said: > Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > expecting T_STRING or T_VARIABLE or T_NUM_STRING in > /hsphere/local/home/welding/weldingconsultants.com/wcapp/admin.php on > line 82 > > Line 82

RE: [PHP] Parse Error... how to fix?

2004-12-16 Thread Chris W. Parker
Richard Lynch on Thursday, December 16, 2004 10:46 AM said: >> " $language['program_name'] \n" . > > #1. Get rid of the ''s around program_name. Those won't work inside > of ""s. echo "{$language['program_name']}\n"; http://us2.php.net/manual/en/language.type

RE: [PHP] Parse Error... how to fix?

2004-12-16 Thread Chris W. Parker
GH on Thursday, December 16, 2004 10:10 AM said: > However, I can not get any results into the tags all three > options are not displaying try: "; print_r($language['program_name']); echo ""; ?> If you don't see anything then there's no data in your

Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread Marek Kilimajer
GH wrote: However, I can not get any results into the tags all three options are not displaying $language is in global scope, you need: function printHeader(){ global $language; More: http://sk2.php.net/manual/en/language.variables.scope.php On Thu, 16 Dec 2004 13:03:57 -0500, GH <[EMA

Re: Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread hitek
Thu PM 01:09:48 EST > To: Marek Kilimajer <[EMAIL PROTECTED]> > CC: php-general <[EMAIL PROTECTED]> > Subject: Re: [PHP] Parse Error... how to fix? > > However, I can not get any results into the tags all three > options are not displaying > > >

Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread Matthew Sims
> Hi All... > Got a problem... here is the error: Parse error: parse error, > expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in > /var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I > am not sure on how to fix it... > > line 42 is: " $language['program_name'] \n" .

Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread Sam
GH wrote: Hi All... Got a problem... here is the error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I am not sure on how to fix it... line 42 is: " $language['program_name'] \n" . The

Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread Richard Lynch
GH wrote: > Got a problem... here is the error: Parse error: parse error, > expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in > /var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I > am not sure on how to fix it... > > line 42 is: " $language['program_name'] \n" . >

Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread Brian Dunning
line 42 is: " $language['program_name'] \n" . Try: ''.$language['program_name'].'' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread GH
I will try this when i get back to my other computer where development takes place the script format was originally started by an IDE that I am starting to add my code to ... so I will look at. On Thu, 16 Dec 2004 18:19:43 -, Ford, Mike <[EMAIL PROTECTED]> wrote: > To view the terms under

RE: [PHP] Parse Error... how to fix?

2004-12-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 16 December 2004 17:39, GH wrote: > Hi All... > Got a problem... here is the error: Parse error: parse error, > expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in > /var/

Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread GH
However, I can not get any results into the tags all three options are not displaying On Thu, 16 Dec 2004 13:03:57 -0500, GH <[EMAIL PROTECTED]> wrote: > Ok... thank you. > > > On Thu, 16 Dec 2004 19:02:37 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > > GH wrote: > > > Hi All...

Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread Marek Kilimajer
GH wrote: Hi All... Got a problem... here is the error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I am not sure on how to fix it... line 42 is: " $language['program_name'] \n" . eit

Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread GH
Ok... thank you. On Thu, 16 Dec 2004 19:02:37 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > GH wrote: > > Hi All... > > Got a problem... here is the error: Parse error: parse error, > > expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in > > /var/www/html/ahrc_computerclub/ahrc_comp

RE: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 06 December 2004 17:23, Greg Donald wrote: > On Mon, 06 Dec 2004 11:54:50 -0500, Robert Sossomon > <[EMAIL PROTECTED]> wrote: > > Parse error: parse error, expecting `T_VARIABLE'

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Greg Donald
On Mon, 06 Dec 2004 11:54:50 -0500, Robert Sossomon <[EMAIL PROTECTED]> wrote: > Parse error: parse error, expecting `T_VARIABLE' or `'$'' in > c:\fourh\leadership\registration_post.php on line 29 > > for ($i=0; $i < count($choices); $i++) This is bad. Every time the for() loop iterates, the cou

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Richard Lynch
Variable names cannot start with a digit. $distoffice0405 is kosher. $0405distoffice is not. Robert Sossomon wrote: > Parse error: parse error, expecting `T_VARIABLE' or `'$'' in > c:\fourh\leadership\registration_post.php on line 29 > > The HTML page: > http://rsossam-lap.ces.ncsu.edu/leadership

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread John Holmes
Robert Sossomon wrote: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 [snip] $0405distoffice= $_POST['04_05_dist_office']; //line29 $0506distoffice= $_POST['05_06_dist_office']; Variable names cannot start with a number. -- ---Joh

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread John Nichel
Robert Sossomon wrote: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 $0405distoffice= $_POST['04_05_dist_office']; //line29 $0506distoffice= $_POST['05_06_dist_office']; Look in the manual, that's your first stop... http://us4.

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Thomas Munz
you forgot the " ' " in the $fname= $_POST[fname]; $lname= $_POST[lname]; $addie= $_POST[addie]; $city= $_POST[city]; fields!!! > error, expecting `T_VARIABLE' or `'$'' in > c:\fourh\leadership\registration_post.php on line 29 > > The HTML page: > http://rsossam-lap.ces.ncsu.edu/leadership/re

RE: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Matthew Sims
>> So when using arrays with string keys within strings you need to >> concatenate it. >> >> $var = "I live in the city of ". $_POST['cityname']; > > No, you do not *need* to -- it is one option, certainly, but there is no > necessity about it. > > Within double-quoted strings, it is perfectly acce

RE: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 02 December 2004 13:22, Robert Sossomon wrote: > But what I don't understand is why sometimes > '$_POST[variable]' works and why > sometimes it will only work when it is '$_POST[

RE: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 02 December 2004 16:49, Matthew Sims wrote: > > > So when using arrays with string keys within strings you need to > > > concatenate it. > > > > > > $var = "I live in the city

RE: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 01 December 2004 19:29, Matthew Sims wrote: > > So when using arrays with string keys within strings you need to > concatenate it. > > $var = "I live in the city of ". $_POST[

Re: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Robert Sossomon
Richard Lynch is quoted as saying on 12/1/2004 2:57 PM: Robert Sossomon wrote: Parse error: parse error, expecting `']'' in file.php Unfortunately?? I knew exactly where the code was breaking (the lines I posted) since before I added those lines of code the script worked without any problems.

Re: [PHP] Parse error: parse error, expecting `']'' in

2004-12-01 Thread Richard Lynch
Robert Sossomon wrote: > Parse error: parse error, expecting `']'' in file.php First, some minor nits with other posters :-) 1. While it's true that integer and string keys are handled differently in some cases, it has absolutely no bearing when the array reference is buried in a string. 2. The

Re: [PHP] Parse error: parse error, expecting `']'' in

2004-12-01 Thread Matthew Sims
> Parse error: parse error, expecting `']'' in file.php > > I've been working on this script, and can't see why it fails here, but I > have > another page that uses the same coding and it works correctly. > > OK, here's the code: > $cart1 = ""; > $cart1 = > "'$_POST[nutrition_program_assistant]','$

Re: [PHP] Parse error: parse error, expecting `']'' in

2004-12-01 Thread Thomas Munz
> Parse error: parse error, expecting `']'' in file.php > > I've been working on this script, and can't see why it fails here, but I > have another page that uses the same coding and it works correctly. > > OK, here's the code: > $cart1 = ""; > $cart1 = > "'$_POST[nutrition_program_assistant]','$_P

Re: [PHP] Parse Error --- can not solve at this time... please assit

2004-10-11 Thread Minuk Choi
the ", $desc)" is your culprit. foreach ($arrayVariable as $key=>$value) is probably the form you meant. foreach ($admin_get_options_result as $api =>$file, $desc) what is $api, $file, $desc supposed to be? If I were to hazard a guess, is the $admin... array a nested array, something like $admin

Re: [PHP] Parse Error --- can not solve at this time... please assit

2004-10-11 Thread Janet Valade
GH wrote: With the following code, I am getting the following message Parse error: parse error, expecting `')'' in /var/www/html/cert/admin_template.php on line 30 Line 30 Reads as follows: foreach($admin_get_options_result as $api => $file, $desc) Your syntax is incorrect on this

Re: [PHP] Parse Error... can not find cause of error....

2004-09-25 Thread Marek Kilimajer
GH wrote: Greetings... I am getting a parse error (line 45) and I do not know what is causing it... since I have the same code with minor changes nyc_ renamed to fed_ and it works... can someone please assit. code is also available at http://www.phpaste.com/536 File: /var/www/html/cert/mod/nyc

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Thanks Jason. I've started doing that - damn well have to with nested IF statements. -- - Michael Mason Arras People www.arraspeople.co.uk - "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > > But the er

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jarratt Ingram
Hello, Try adding the closing brace } to the last else forEach($errors as $error) { echo $error . ''; } } else { echo "Hi...!"; <-- hth Jarratt On Mon, 2004-07-19 at 12:02, Harlequin wrote: > Jim > > I deleted a whole load of lines and still get the error. I've narrowed it

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jim Root
> else > { >echo "Hi...!"; > ?> You are missing a } at the end of the else. It should be: else { echo "Hi...!"; } ?> On Mon, 19 Jul 2004 12:02:47 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > Jim > > I deleted a whole load of lines and still get the error. I've narrowed it > dow

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jason Barnett
But the error (line 40) is actually the last line...! :| You had a missing brace. When the error line is the last line (and especially if error is Undefined $end) then you likely have a missing ending brace or ending quote. Not trying to start a flame war here, but if you try a different codi

  1   2   3   >