PHP Parse Error Unexpected T_LNUMBER
Do you like this story?
I am getting parse errors.
"Parse error: parse error, unexpected T_LNUMBER
"Parse error: parse error, unexpected T_LNUMBER
<html>
<head>
<title> TEST </title>
<h1> TEST </h1>
</head>
<body>
<?php
$i=1;
echo ("<table border="1">");
echo ("<tr>");
while ($i<=8)
{
for ($j=1;$j<=8;$j++)
{
if ($j%2==0)
{
echo ("<td bgcolor="black" width="125" height="150"></td>");
}
else
{
echo ("<td bgcolor="white" width="125" height="150"></td>");
}
}
echo ("</tr>");
$i++;
}
echo ("</table>");
?>
</body>
</html>
EDIT :-
I managed to find it out myself. The quotation
marks within the quotation marks of echo function was causing the trouble.
Changed it to inverted comas and voila! It works
This post was written by: Sachin Tangoria
Sachin Tangoria is a professional Web designer working as project leader living in New Delhi. Follow him on Twitter
Subscribe to:
Post Comments (Atom)
0 Responses to “PHP Parse Error Unexpected T_LNUMBER”
Post a Comment