Am trying to fetch results from a table called personal but this code doesn't seem to produce any results. First i connect to mysql and select database as you can see above, this seems to be okay. Then i attempt to use while statements to list thru them. Any ideas why it doesn't work??
<?
include ("connect_to_mysql.php");
include ("select_employeedb.php");
connect_to_mysql();
select_employeedb();
$result=mysql_query("SELECT nameid FROM personal") or die (mysql_error());
echo "<table>";
while($row=mysql_fetch_array($result,MYSQl_ASSOC))
{
echo "<tr>";
while(list($key,$value)=each($row))
{
echo "</td>";
}
echo "</tr>";
}
echo "</table>";
?>
Any more info about script needed-just ask. Thx in advance.