Note that there are some explanatory texts on larger screens.

plurals
  1. POChanging the background on a table?
    primarykey
    data
    text
    <p>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...</p> <pre><code>&lt;body background="Background here" bgproperties="fixed"&gt; &lt;?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("&lt;center&gt;Cannot connect to MySQL&lt;/center&gt;"); mysql_select_db($DBNAME) or die("&lt;center&gt;Cannot Connect to MYSQL&lt;/center&gt;"); $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}&lt;/h1&gt;"; echo "&lt;table border='0' bgcolor=#FFFFFF&gt;&lt;tr&gt;"; // printing table headers for($i=0; $i&lt;$fields_num; $i++) { $field = mysql_fetch_field($result); echo "&lt;td&gt;{$field-&gt;name}&lt;/td&gt;"; } echo "&lt;/tr&gt;\n"; // printing table rows while($row = mysql_fetch_row($result)) { echo "&lt;tr&gt;"; // $row is array... foreach( .. ) puts every element // of $row to $cell variable foreach($row as $cell) echo "&lt;td&gt;$cell&lt;/td&gt;"; echo "&lt;/tr&gt;\n"; } mysql_free_result($result); ?&gt; </code></pre> <p>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! :)</p> <p>Obviously I also need to figure out how to change the text color too :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload