RE: [PHP] parse error

2007-05-04 Thread Brad Sumrall
] 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_new.php on line 37 I am

RE: [PHP] parse error

2007-05-04 Thread Brad Sumrall
, 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_new.php on line 37 I am basically pulling

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 if(!isset($_SESSION[userid])) { ? form action=/phpbb/index.php

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

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 ul class=labels ?php 1 define('PREFIX', 'http://.x.com/labels'); 2

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

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 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 ul

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 pThat email

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

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

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 '}'

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

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 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, ?php 15 echo font face='$_SESSION['font']'; 16 echo size='$_SESSION['size']'; 17 echo color='$_SESSION['colour']'; 18 echo $_SESSION['text']; 19 echo /font; 20 ? I have put ' ' quotes around

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, ?php 15 echo font face='$_SESSION['font']'; 16 echo size='$_SESSION['size']'; 17 echo color='$_SESSION['colour']'; 18 echo $_SESSION['text']; 19 echo /font; 20 ? I have put ' ' quotes around the

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

2006-05-24 Thread Stut
Mark Sargent wrote: Hi All, this code, ?php $flavour[] = blue raspberry; $flavour[] = root beer; $flavour[] = pineapple; sort($flavour); print_r($flavour); echo br; echo My favourite flavours are:br; foreach ($flavour as $currentValue) { //these lines will execute as long as there

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

2006-05-24 Thread Robin Vickery
On 24/05/06, Mark Sargent [EMAIL PROTECTED] wrote: Hi All, this code, ?php $flavour[] = blue raspberry; $flavour[] = root beer; $flavour[] = pineapple; sort($flavour); print_r($flavour); echo br; echo My favourite flavours are:br; foreach ($flavour as $currentValue) { //these

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

2006-05-24 Thread Chris
Mark Sargent wrote: Hi All, this code, ?php $flavour[] = blue raspberry; $flavour[] = root beer; $flavour[] = pineapple; sort($flavour); print_r($flavour); echo br; echo My favourite flavours are:br; foreach ($flavour as $currentValue) { //these lines will execute as long as there

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

2006-05-24 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 br\n; it should be echo $currentValue . br\n; or echo $currentValue , br\n; thanx to all. The book is Beginning PHP, Apache, MySQL,

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

2006-04-08 Thread Tom Chubb
-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: $insertSQL = INSERT INTO cars (model, `year`, details

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

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

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

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Tom Chubb
Complete code... ?php require_once('../Connections/damotors.php'); ? ?php function GetSQLValueString($theValue, $theType, $theDefinedValue = , $theNotDefinedValue = ) { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue; switch ($theType) { case text:

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 even be

RE: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Chrome
://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: $insertSQL = INSERT INTO cars (model, `year

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 John Nichel
Tom Chubb wrote: Complete code... snip $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],

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

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Satyam
PROTECTED] To: 'Joe Henry' [EMAIL PROTECTED]; php-general@lists.php.net; [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 the array references were encapsulated in curly

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Joe Henry
['model']}' 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

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: html headtitleTest MySQL/title/head body !-- mysql_up.php -- ?php

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: html

Re: [PHP] Parse Error

2006-02-21 Thread Kevin Waterson
This one time, at band camp, Ray Cantwell [EMAIL PROTECTED] wrote: ?php $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 lamb

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 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: html headtitleTest MySQL/title/head body !--

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: html headtitleTest MySQL/title/head body !--

Re: [PHP] Parse Error

2006-02-21 Thread benifactor
- Original Message - From: Ray Cantwell [EMAIL PROTECTED] To: php-general@lists.php.net 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

RE: [PHP] Parse Error

2006-02-21 Thread Emmanuel Job
@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* on line here is the code

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: 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 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? Prathap --

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=enlr=q=good+editor+for+phpbtnG=Search choose one. --

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=enlr=q=good+editor+for+phpbtnG=Search choose one. This can take a long time, I know. My

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 (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); The above line is fine. Check the lines above. it gives an error.. Parse error: parse error, unexpected T_CLASS in

RE: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jay Blanchard
[snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); 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]

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Jay Blanchard wrote: [snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); 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

Re: [PHP] parse error, unexpected T_CLASS

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

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Marek Kilimajer wrote: Dasmeet Singh wrote: Jay Blanchard wrote: [snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); it gives an error.. Parse error: parse error, unexpected T_CLASS in

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jason Barnett
Dasmeet Singh wrote: Jay Blanchard wrote: [snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any

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 ?php 2 $host = localhost; 3 $user = root; 4 $pass = alpha; 5 $konek =

[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,

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 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\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-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-generalw=2 STFM |

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

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Jeff Schmidt mailto:[EMAIL PROTECTED] 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 is:

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 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP parser finally gets

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 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP parser

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 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP

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 'tdinput type=\'checkbox\' name=\'status[' . ^^ should be a slash??

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Jason Barnett mailto:[EMAIL PROTECTED] 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 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Dan Tappin
Why not make it simple?: // end PHP code ? tdinput type='checkbox' name='status[? echo $row['profileID']; ?]' value='true'/td ? // continue PHP code 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

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

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 Brian Dunning
line 42 is: TITLE $language['program_name'] /TITLE\n . Try: 'TITLE'.$language['program_name'].'/TITLE' -- 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 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: TITLE $language['program_name'] /TITLE\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: TITLE $language['program_name']

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: TITLE $language['program_name'] /TITLE\n

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

2004-12-16 Thread hitek
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 title tags all three options are not displaying On Thu, 16 Dec 2004 13:03:57 -0500, GH [EMAIL PROTECTED] wrote: Ok... thank

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

2004-12-16 Thread Marek Kilimajer
GH wrote: However, I can not get any results into the title 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

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

2004-12-16 Thread Chris W. Parker
GH mailto:[EMAIL PROTECTED] on Thursday, December 16, 2004 10:10 AM said: However, I can not get any results into the title tags all three options are not displaying try: ?php echo pre; print_r($language['program_name']); echo /pre; ? If you don't see anything then

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

2004-12-16 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, December 16, 2004 10:46 AM said: TITLE $language['program_name'] /TITLE\n . #1. Get rid of the ''s around program_name. Those won't work inside of s. echo title{$language['program_name']}/title\n;

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

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

2004-12-16 Thread GH
However, I can not get any results into the title 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... Got

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:

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 snip $0405distoffice= $_POST['04_05_dist_office']; //line29 $0506distoffice= $_POST['05_06_dist_office']; snip Look in the manual, that's your first stop...

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. --

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:

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 count()

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' or

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 SNIP 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

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 .

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 of .

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

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 acceptable to use

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 =

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 =

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 --- 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 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

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:

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jim Root
I see one problem, but not the one you are talking about. // Convert Values to Variables: $Title = $_POST[Title]; This (and the rest of the post fields) should have quotes: $Title = $_POST[Title]; (php looks for a constant named Title, instead of the string Title) What line gives you the

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Jim I deleted a whole load of lines and still get the error. I've narrowed it down to this code: ?php // Verify User Input: echo brbrbr; $requiredFields = array('Title','ChristianName','Surname','HomePhone','Address01','City','Post code','Country','Gender','WorkPermitRequired','MyStatus');

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jason Wong
On Monday 19 July 2004 19:02, Harlequin wrote: I deleted a whole load of lines and still get the error. I've narrowed it down to this code: Please read the syntax guide in the manual. Asking people to solve parse errors for you is, IMHO, ludicrous. -- Jason Wong - Gremlins Associates -

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

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 down to this code:

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 . 'brbr'; } } 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 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 error

Re: [PHP] parse error: [PHP] usort e é together

2004-07-11 Thread Marek Kilimajer
I'm sorry, I used unescaped single quotes inside single quoted string, this is right: usort($authors, create_function('$a,$b',' $a = str_replace(array(é, à), array(e, a), $a); $b = str_replace(array(é, à), array(e, a), $b); return strcasecmp($a,$b);')); John

  1   2   3   >