Re: Parse error: syntax error, unexpected '>'
| From: | Fernando Castillo Aparicio | Date: | Wed, 23 Sep 2009 14:23:07 +0000 |
| Subject: | Re: Parse error: syntax error, unexpected '>' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298280@lists.php.net to get a copy of this message | ||
You missed a double quote here:
echo " <fieldset>
<ul style='list-style: none'>\n";
________________________________
De: Haig Davis <level510@gmail.com>
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 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" action="http://bw.org/misc/cgi-test/test.cgi">
<?php
$sql = "SELECT * FROM melstatus WHERE custID=$custID ORDER BY
aircraftRegistration";
$q = mysql_query($q)
or die ("could not execute query.");
echo " <fieldset>
<ul style='list-style: none'>\n;
while($row = mysql_fetch_array($q))
{
echo " <li>".$row['melID']."<input
type="checkbox"
name="\".$row['melID].\""/input> ";
</li>\n";
}
echo "</ul></fieldset>
?>
</form>
Many Thanks
Haig