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 Ever

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

2009-09-23 Thread Haig Davis
Good morning Everyone, I'm have trouble with a simple HTML Checkbox list. I keep getting *Parse error*: syntax error, unexpected '>'. I'm sure I'm doing something really simple and basic wrong I just cannot seem to see what it is, any assistance is appreciated. Script: http://bw.org/misc/cgi-tes

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

2006-06-02 Thread Bagus Nugroho
Bagus Nugroho would like to recall the message, "[PHP] Parse error: syntax error, unexpected '}'".

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

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

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

2006-06-02 Thread Mark Sargent
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 ($age)"; $results = mysql_query($insert)

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

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

2006-05-25 Thread Mark Sargent
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 this code would get

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

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

2006-05-23 Thread Mark Sargent
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_CONSTANT_ENCAPSED_STRING,