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:
Many Thanks
Haig
--001636283a36e7f34104743f623c--
Re: Parse error: syntax error, unexpected ">"
am 23.09.2009 16:23:07 von Fernando Castillo Aparicio
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 a " (escaped \") Also, I
think you need to brush up on your HTML a bit, as
is not valid HTML.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Parse error: syntax error, unexpected ">"
am 23.09.2009 16:32:27 von Fernando Castillo Aparicio
Reading again, it's not just one miss. You have to close some strings, esca=
pe some quotes, etc
I think this can be right:
$sql =3D "SELECT *=
FROM melstatus WHERE custID=3D$custID ORDER BY=0AaircraftRegistration";=0A=
=0A $q =3D mysql_query($q)=0A or die ("could not execute quer=
y.");
echo "
";
=0AI'd recomend you to get a good text editor with sint=
ax highlighting if you haven't one. It would warn you from most of these mi=
stakes.
And an xhtml issue: to use an empty tag, you use and no=
t
________________________________=0ADe: Fernand=
o Castillo Aparicio =0APara: Haig Davis
l.com>; php-general@lists.php.net=0AEnviado: mi=E9rcoles, 23 de septiembre,=
2009 16:23:07=0AAsunto: Re: [PHP] Parse error: syntax error, unexpected '>=
'
You missed a double quote here:
echo "
=0A =
\n";
=0A____________________=
____________=0ADe: Haig Davis =0APara: php-general@list=
s.php.net=0AEnviado: mi=E9rcoles, 23 de septiembre, 2009 16:18:17=0AAsunto:=
[PHP] Parse error: syntax error, unexpected '>'
Good morning Everyone=
,
I'm have trouble with a simple HTML Checkbox list. I keep getting *P=
arse=0Aerror*: syntax error, unexpected '>'. I'm sure I'm doing something r=
eally=0Asimple and basic wrong I just cannot seem to see what it is, any as=
sistance=0Ais appreciated.
Script:
=3D"http://bw.org/misc/cgi-test/test.cgi">
FROM melstatus WHERE custID=3D$custID ORDER BY=0AaircraftRegistration";=0A=
=0A $q =3D mysql_query($q)=0A or die ("could not execute quer=
y.");
echo "