Select Menu

Ads

Design

Technology

Circle Gallery

Shooting

Racing

News

Bottom

» »Unlabelled » How to display all the datas in database using php


<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>

About dhamodaran

WePress Theme is officially developed by Templatezy Team. We published High quality Blogger Templates with Awesome Design for blogspot lovers.The very first Blogger Templates Company where you will find Responsive Design Templates.
«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply