A
AnSwErFaNaTiC
Guest
Im screwed because I know I abused this. Im tryin to fix my background color and/or image and this is what i came up with.
<?php
$db_host='localhost';
$db_database='characters';
$db_username='root';
$db_password='ascent';
$connection = mysql_connect($db_host, $db_username, $db_password);
$db_select = mysql_select_db($db_database);
$query = "SELECT * FROM characters ORDER BY gold DESC, xp DESC LIMIT 10";
$gasolincho = mysql_query($query);
<body>
<?
$today = date("w");
$bgcolor = array(
"#FF0000", "#00FF00", "#0000FF", "#FFFF00",
"#FF00FF", "#00FFFF", "#FFFFFF"
);
?>
<body bgcolor="<?print("$bgcolor[$today]");?>">
</body>
$content = '<table width=200>';
$i = 1;
while($steff = mysql_fetch_assoc($gasolincho)){
$content .= "<tr><td>". $i ."</td><td>". $steff['name'] ."</td><td>".$steff['gold']."</td><td>".$steff['xp']."</td></tr>";
$i++;
}
$content .= '</table>';
echo $content;
?>
somebody please help
<?php
$db_host='localhost';
$db_database='characters';
$db_username='root';
$db_password='ascent';
$connection = mysql_connect($db_host, $db_username, $db_password);
$db_select = mysql_select_db($db_database);
$query = "SELECT * FROM characters ORDER BY gold DESC, xp DESC LIMIT 10";
$gasolincho = mysql_query($query);
<body>
<?
$today = date("w");
$bgcolor = array(
"#FF0000", "#00FF00", "#0000FF", "#FFFF00",
"#FF00FF", "#00FFFF", "#FFFFFF"
);
?>
<body bgcolor="<?print("$bgcolor[$today]");?>">
</body>
$content = '<table width=200>';
$i = 1;
while($steff = mysql_fetch_assoc($gasolincho)){
$content .= "<tr><td>". $i ."</td><td>". $steff['name'] ."</td><td>".$steff['gold']."</td><td>".$steff['xp']."</td></tr>";
$i++;
}
$content .= '</table>';
echo $content;
?>
somebody please help