How can I change the color of the text in my iFrame? [closed]
- by VinylScratch
I have code here:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Frag United Banlist</title>
</head>
<body>
<h1>Tekkit Banlist</h1>
<?php
// change these things
$server = "server-host";
$dbuser = "correct-user";
$dbpass = "correct-password";
$dbname = "correct-database";
mysql_connect($server, $dbuser, $dbpass);
mysql_select_db($dbname);
$result = mysql_query("SELECT * FROM banlist ORDER BY id DESC");
//This will display the most recent by id edit this query how you see fit. Limit, Order, ect.
echo "<table width=100% border=1 cellpadding=3 cellspacing=0>";
echo "<tr style=\"font-weight:bold\">
<td>ID</td>
<td>User</td>
<td>Reason</td>
<td>Admin/Mod</td>
<td>Time</td>
<td>Ban Length</td>
</tr>";
while($row = mysql_fetch_assoc($result)){
if($col == "#eeeeee"){
$col = "#ffffff";
}else{
$col = "#eeeeee";
}
echo "<tr bgcolor=$col>";
echo "<td>".$row['id']."</td>";
echo "<td>".$row['user']."</td>";
echo "<td>".$row['reason']."</td>";
echo "<td>".$row['admin']."</td>";
//Convert Epoch Time to Standard format
$datetime = date("F j, Y, g:i a", $row['time']);
echo "<td>$datetime</td>";
$dateconvert = date("F j, Y, g:i a", $row['length']);
if($row['length'] == "0"){
echo "<td>None</td>";
}else{
echo "<td>$dateconvert</td>";
}
echo "<td>".$row['id']."</td>";
echo "</tr>";
}
echo"</table>"
?>
</div>
</body></html>
And I am trying to make it so that when I put it in this iframe:
<iframe src="http://bans.fragunited.net/" width="100%" length="100%"><p>Your browser does not support iframes.</p></iframe>
But if you go to this page, fragunited.net/bans, (not bans.fragunited.net) the text is black and I want it to be white so you can actually see it. Sorry for the large amount of code, however I don't know where you have to put the code to change the color.