change color
From: de Beers (fdgdf_at_yahoo.ca)
Date: 05/29/04
- Next message: jaYPee: "paypal shopping cart"
- Previous message: draken: "Re: How do I get someones IP address?"
- Next in thread: ALI: "Re: change color"
- Reply: ALI: "Re: change color"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 29 May 2004 00:02:05 -0700
Does anyone know how I would make each row of the result a different color:
here is what I have:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?
$connection=mysql_connect("localhost", "bla bla", "bla bla") or die
("could not connect");
mysql_select_db("yorkbia2_dbname");
$result = mysql_query("SELECT * FROM Board");
echo "<table border=0, table width=100%, bgcolor=#FFFFFF>\n";
while ($myrow = mysql_fetch_row($result)) {
printf("<tr><td%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td>
<td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</tr>\n",
$myrow[0], $myrow[1], $myrow[2], $myrow[3], $myrow[4], $myrow[5],
$myrow[6], $myrow[7], $myrow[8], $myrow[9], $myrow[10]);
}
echo "</table>\n";
?>
</body>
</html>
- Next message: jaYPee: "paypal shopping cart"
- Previous message: draken: "Re: How do I get someones IP address?"
- Next in thread: ALI: "Re: change color"
- Reply: ALI: "Re: change color"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]