<table width="1051" height="178" border="0">
<tr>
<td>Date</td>
<td>Name of the conference</td>
<td>Venue</td>
</tr>
<?php
mysql_connect("localhost","root","") or die("connection faild");
mysql_select_db("con") or die ("database not avi");
$sql = "SELECT * FROM data ORDER BY date ASC";
$res=mysql_query($sql);
WHILE($rows = mysql_fetch_object($res))
{
echo "<tr>
<td>$rows->venue</td>
<td><a href='detail.php?ide=$rows->id'>$rows->name</a></td>
<td>$rows->date</td>
</tr>";
}
?>
</table>
No comments