<body>
<p>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("select", $con);
$result = mysql_query("SELECT * FROM view");
?>
</p>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<?php while($row = mysql_fetch_array($result))?>
<?php
{
?>
<tr bgcolor="#F5F5F5">
<td >
<?php echo $val['name']; ?>
</td>
</tr>
<?php mysql_close($con);
} ?>
</table>
</form>
</body>
khushhappy 0 Light Poster
monica singh 0 Light Poster
khushhappy 0 Light Poster
paulrajj 6 Junior Poster
monica singh 0 Light Poster
khushhappy 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.