Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 472 Bytes
<?php // Connects to your Database
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("inst") or die(mysql_error());
$data = mysql_query("SELECT * FROM data") or die(mysql_error());
Print "<table border cellpadding=3>";
while($info = mysql_fetch_array( $data ))
{ Print "<tr>";
Print "<th>Name:</th> <td>".$info['name'] . "</td> ";
Print "<th>email:</th> <td>".$info['email'] . " </td>
</tr>"; }
Print "</table>"; ?>