Blog is under rejuvenation process


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

0 Responses to “PHP Parse Error Unexpected T_LNUMBER”

Recent Comments

How To Dodoes not take any responsibility with the information presented. Any information provided on this site is not guaranteed in any way.all information is provided for educational purposes only, use at your own risk. If you blow up your Home, Computer, Car, Mobile, Game Console or Anything else -- it's not my fault ;) use Good judgment and Play nice Thanks !!.