please for give me this is only my second day working with php and mysql together. but im having a problem and maybe you guys can help. ok this php is connecting to mysql and the code is
<?php
if(isset($_POST['add']))
{
include 'myincludes/config.php';
$class = $_POST['class'];
$subclass = $_POST['subclass'];
$field4 = $_POST['field4'];
$name = $_POST['name'];
mysql_query("INSERT INTO items1
(class, subclass, field4, name) VALUES('$class', '$subclass', '$field4', '$name' ) ")
or die(mysql_error());
$query = "FLUSH PRIVILEGES";
mysql_query($query) or die('Error, insert query failed');
// Get all the data from the "items1" table
$result = mysql_query("SELECT * FROM items1 ORDER BY entry")
or die(mysql_error());
echo "<table border='1'>";
echo "<tr> <th>ENTRY</th> <th>ITEMS NAME</th> </tr>";<<<<<<<<<<<<<<<<<<<<this right here is what i want to change make it white.>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// keeps getting the next row until there are no more to get
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table
echo "<tr bgcolor=\"#B7D9F6";
echo "<td bgcolor=\"#B7D9F6";
echo "<\tr bgcolor=\"#B7D9F6";
echo "<\td bgcolor=\"#B7D9F6";
echo "<tr><td>";
echo $row['entry'];
echo "</td><td>";
echo $row['name'];
echo "</td></tr>";
}
echo "</table>";
}
else
{
?>
right here i want to make the text the color of white. but i can seem to place any code there. what do i do?
echo "<tr> <th>ENTRY</th> <th>ITEMS NAME</th> </tr>";
by default its black. but my page is black so i can see it.
here try it your self temm what what to do to fix this little bug.
http://www.auction-mmorpg.com/Wrath/Weaponlayout.php
Edited 2 time(s). Last edit at 10/16/2007 02:04AM by Rob Puck.