i am trying to view this file
http://www.dcobbinah.co.uk/datadatabasebase/viewdb.php but its not happening at all. here is the code for that file. please can someone tell me what the problem is!!
Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
//$db = mysql_connect_db("localhost","","");
//$db=mysql_connect('localhost','root');
$user="dcobbina";
$host="localhost";
$password="aDoGoovAc";
$database="danny";
$connection=mysql_connect($host,$user,$password) or die ("could not connect to server");
$db=mysql_select_db($database,$connection);
//mysql_select_db("danny",$db);
$result = mysql_query("select * from personell",$connection);
echo "<table border=0 cellpadding=2 cellspacing=2 >";
echo "<tr><td><b>first name</b></td><td><b>last name</b></td><td><b>nick name</b></td><td><b>email</b></td><td><b>salary</b></td></tr>";
while ($myrow = mysql_fetch_array($result))
{
echo "<tr><td>";
echo $myrow["firstname"];
echo "<td>";
echo $myrow["lastname"];
echo "<td>";
echo $myrow["nickname"];
echo "<td>";
echo $myrow["email"];
echo "<td>";
echo $myrow["salary"];
}
echo "</table>";
?>
</body>
</html>