[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: form method=post

[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) or

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

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

[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, ?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 quotes for each font

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

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

2006-05-24 Thread Mark Sargent
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 is a value in $flavour

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,