Im coding my site using CSS, and it includes a fair amount of PHP.
All of the text is meant to be 10pt, Verdana and a silvery/grey colour.
Here is a snippet of my code, was hoping some of you could tell me why it's not working, i've tried everything.
You can also take a look at the pagehere.
Any suggestions would be grateful. Thanks.
All of the text is meant to be 10pt, Verdana and a silvery/grey colour.
Here is a snippet of my code, was hoping some of you could tell me why it's not working, i've tried everything.
Code:
<html>
<head>
<title>Table View</title>
<style type="text/css">
body
{
background-color: #CACACA;
}
#content
{
font-size:10px;
font-family: verdana;
font-color:#808285;
text-decoration: none;
}
}
A,A:Visited,A:Active
{
font-size:10px;
font-family: verdana;
width: 100px;
color:#808285;
text-decoration: none;
}
A:Hover
{
font-size:10px;
font-family: verdana;
font-weight:none;
text-decoration:none;
background-color:none;
width: 100px;
color:#808285;
}
.baselinestyle
{
font-size:10px;
font-family: verdana;
font-weight:none;
text-decoration:none;
background-color:none;
width: 100px;
color:#808285;
</style>
</head>
<body>
<table>
<div id="content">
<tr>
<th>PlayerID</th>
<th>FirstName</th>
<th>LastName</th>
<th>Telephone No</th>
<th>Address</th>
<th>Date of Birth</th>
<th>Post Code</th>
<th>E-mail</th>
</tr>
<?
$hostname="hamill.dns-systems.net";
$username="hamill_hook";
$password="asd123";
$database="hamill_hook";
mysql_connect($hostname,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM Player";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
if ($num==0) {
echo "The database contains no players.";
} else {
}
$i=0;
while ($i < $num) {
$PlayerID=mysql_result($result,$i,"PlayerID");
$FirstName=mysql_result($result,$i,"FirstName");
$LastName=mysql_result($result,$i,"LastName");
$TelNo=mysql_result($result,$i,"TelNo");
$AddressLine1=mysql_result($result,$i,"AddressLine1");
$DOB=mysql_result($result,$i,"DOB");
$PostCode=mysql_result($result,$i,"PostCode");
$Email=mysql_result($result,$i,"Email");
?>
<tr>
<td><? echo $PlayerID; ?></td>
<td><? echo $FirstName; ?></td>
<td><? echo $LastName; ?></td>
<td><? echo $TelNo; ?></td>
<td><? echo $AddressLine1; ?></td>
<td><? echo $DOB; ?></td>
<td><? echo $PostCode; ?></td>
<td><a href="mailto:<? echo $Email; ?>">E-mail</a></td>
</tr>
</div>
<?
$i++;
}
echo "</table>";
echo "To view the table in ascending order using LastName, click <a href=\"http://www.hamilldesigns.co.uk/playerasc.php\">here</a>";
You can also take a look at the pagehere.
Any suggestions would be grateful. Thanks.