As you can tell by the script below, I have a problem, I’m not going to go into much detail as to what the script does, because it is pretty obvious based on just reading the script…
<body background="Background here" bgproperties="fixed">
<?php
$DBNAME="login info here";
$DBUSER="login info here";
$DBPASSWORD="login info here";
$DBHOST="login info here";
//Connection is below
mysql_connect($DBHOST, $DBUSER, $DBPASSWORD) or die("<center>Cannot connect to MySQL</center>");
mysql_select_db($DBNAME) or die("<center>Cannot Connect to MYSQL</center>");
$sql = 'SELECT `nick`, `votes` FROM `votesdb` ORDER BY `votes` desc LIMIT 0, 10 ';
$result=mysql_query($sql);
$fields_num = mysql_num_fields($result);
echo "{$table}</h1>";
echo "<table border='0' bgcolor=#FFFFFF><tr>";
// printing table headers
for($i=0; $i<$fields_num; $i++)
{
$field = mysql_fetch_field($result);
echo "<td>{$field->name}</td>";
}
echo "</tr>\n";
// printing table rows
while($row = mysql_fetch_row($result))
{
echo "<tr>";
// $row is array... foreach( .. ) puts every element
// of $row to $cell variable
foreach($row as $cell)
echo "<td>$cell</td>";
echo "</tr>\n";
}
mysql_free_result($result);
?>
As you can tell by going here: [http://legacyserver.info/fbxtop.php][1]
The tables background does not blend with the image,tiling background on the rest of the page, obviously, this looks ugly and weird, How could I change the background of the table to the background of the rest of the page! I tried googling, but had no avail. Please help! 🙂
Obviously I also need to figure out how to change the text color too 🙂
Just add this :
If you want to show table at the center of the page you can add margin:
Hope this helps 🙂