Hello ! please,if you could help,let me know it! i have this code :
<?
$connection = mysql_connect(\"localhost\",\"mysql\",\"\");
$db = mysql_select_db(\"price\");
$result = mysql_query(\"SELECT * FROM pricelist where Field1 like \'15 GB%\' OR Field1 like \'20 GB%\' OR Field1 like \'30 GB%\' OR Field1 like \'40 GB%\' OR Field1 like \'60 GB%\' OR Field1 like \'9 1GB%\' OR Field1 like \'18 3GB%\' OR Field1 like \'QM%\'OR Field1 like \'HDD 10GB%\' OR Field1 like \'HDD 20GB%\' OR Field1 like \'HDD RACK%\' OR Field1 like \'PCI BUS%\' OR Field1 like \'PCI INITIO%\' OR Field1 like \'ZIP IOMEG%\' \");
echo \"<table cellpadding=2 cellspacing=0
border=0><tr><td><b>Description</b></td><td><b>Currency</b></td><td><b>Price</b></td></tr>\";
$alternate = \"2\";
while ($row = mysql_fetch_array($result)) {
$Field1 = $row[\"Field1\"];
$Field2 = $row[\"Field2\"];
$pr1 = sprintf (\"%01.2f\", $row[\"pr1\"]);
if ($alternate == \"1\") {
$color = \"#6699FF\";
$alternate = \"2\";
}
else {
$color = \"#FFFfcc\";
$alternate = \"1\";
}
echo \"<tr bgcolor=$color><td>$Field1</td><td>$Field2</td><td>$pr1</td><td></tr>\";
}
echo \"</table>\";
?>
the results from \'Filed2\' and \'pr\' come out one the left in the table but i want they to come out in the right or in the middle. pls,if you have a decision of my problem,let me know how to do this.
Thank you!
Ivelina