Hi,
thanks all for replying
the above code is working just fine....
I know i am going just a bit offtopic..
but can you help me with this code I want to generate a dynamic html table from a mysql query resultset
Code:
$num_results = mysql_num_rows($result);
for ($i=0; $i < $num_results; $i++)
{
echo '<tr> <td align="center">'.$row["name"].'</td>
<td align="center">'.$age.'</td>
<td align="center"><div STYLE="word-wrap: break-word">'.$row["add"].'</div></td>
<td align="center">'.$row["dis"].'</td>
<td align="center">'.$row["divi"].'</td>
<td align="center">'.$row["phone"].'</td>
<td align="center">'.$row["email"].'</td> </tr>';
}
$age is calculated not from the table
I kinda kno wher the problem is ..may b i cannot go to the next record..and how i am fetching the FIELDS from the recordset
the O/P of this code...
it generates nothing
thanks