Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 549 Bytes
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
</HEAD>
<BODY>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("openspace", $con);
$query = "Select * from my_messages";
$acquireQuery = mysql_query($query);
echo '<table border=1>';
while ($result = mysql_fetch_array($acquireQuery))
{
echo '<tr><td>'.$result[0].'</td><td> '.$result[1].'</td><td> '.$result[2].'</td></tr>'.$result[3].'</td></tr>';
}
echo '<table>';
?>
</BODY>
</HTML>