PHP Parse Error Unexpected T_LNUMBER

I am getting parse errors.

"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

Share this

Related Posts

There was an error in this gadget