here is my code
<?php
while($rowcall=mysql_fetch_array($qry_call))
{
?>
<table>
<tr>
<td><?php echo $rowcall['caller_id'];?></td>
<td><?php echo $rowcall['did']; ?></td>
<td><?php echo $rowcall['start_time']; ?></td>
<td><?php echo $rowcall['end_time']; ?></td>
<td><?php echo $rowcall['call_duration']; ?></td>
</tr>
</table>
<?php } ?>
I need to store this table in php variable $result.
Stop Using mysql_*
comments here yet, but really you should :)