hi,
in the below code i have made a variable $htmll, in my php file.In dat var i have stored the html code,in dat html code im writing some php code which in unable to execute....Kindly help me out to resolve it.
Thanx....
<?php
$htmll='
<table align="centre" border="1" cellpadding="0" cellspacing="0" bgcolor="#E3EEB7" style="font-size:10px; font-faimly:vardana;">
<tr>
<td width="19" bgcolor="#B7C6B0">Inp</td>
<td width="19" bgcolor="#B7C6B0">Pre</td>
<td width="24" bgcolor="#B7C6B0">Lea </td>
<td width="21" bgcolor="#B7C6B0">Abs</td>
<td width="34" bgcolor="#B7C6B0">%Age</td>
</tr>'.
while($attnobj=@mysql_fetch_object($result))//this while is not working.im getting the parser error.
{
$off17_inp = $attnobj->off17_inp;
$off17_pre = $attnobj->off17_pre;
$off17_lea = $attnobj->off17_lea;
$off17_abs = $attnobj->off17_abs;
.'
<tr>
<td> </td>
<td>'.$ftysecname.'</td>
<td>'.$off17_inp.'</td>
<td>'.$off17_pre.'</td>
<td>'.$off17_lea.'</td>
<td>'.$off17_abs.'</td>
</tr> '.}.'
</table>';
?>