3. PHP Tutorials By Vineet Kumar Saini
<center>
<table cellpadding="1" cellspacing="0" border="1" width="35%" >
<tr>
<th>Name</th>
<th>Class</th>
<th>Email</th>
</tr>
<?php
while($row = mysql_fetch_array($result))
{
?>
<tr>
<td align="center"><?php echo $row['name']; ?></td>
<td align="center"><?php echo $row['class']; ?></td>
<td align="center"><?php echo $row['email']; ?></td>
</tr>
<?php
}
?>
</table>
</center>
<?php
}
}
?>
Then we run the code and click on ‘A’ then display result of A. Like as following image
If we click on ‘V’ then display result of ‘V’. Like as following image
http://vineetsaini.wordpress.com
4. PHP Tutorials By Vineet Kumar Saini
If we click on ‘View All’ then display full data from table.Like as following image
http://vineetsaini.wordpress.com