Hello Reader,
I'm using PHP to access a MySql Dbase to display the information in the Dbase on a web page.
My problem is the the information is displayed in one straight long colomn.
XXXXXXXX
XXXXXXX
XXXXXXX
XXXXXXXX
XXXX
XXXXXXX
XXXXXXXX
I would like to have the information displayed in a series of colomns.
XXXXXXXX XXXXXXXXXX
XXXXXXX XXXXXXXXXX
XXXXXXX XXXXXXXX
XXXXXXXX XXXXXXXXX
XXXX XXXXXXXXXX
XXXXXXX XXXXXXXXXX
XXXXXXXX XXXXXXX
How is this done?
The code I'm using is:
$result = mysql_query("SELECT * FROM ManfLst ORDER BY ManfLst.Manf;");
if (!$result) { echo("<p>Error Displaying Manufacturer Listing. Please Contact Web Master.</p>"); exit();}
while ($row = mysql_fetch_array($result)) {
$IDI=$row["ID"];
$Manf=$row["Manf"];
echo("<tr><td><h2>$Manf<h2></td></tr>");
$mdlstring = mysql_query("SELECT * FROM MdlLst WHERE ManfLst_ID = '$IDI' ORDER BY MdlNum;");
if (!$mdlstring) { echo("<p>Error Displaying Model Listing. Please Contact Web Master.</p>"); exit();}
while ($rowII = mysql_fetch_array($mdlstring)) {
$Mdl=$rowII["MdlNum"];
$ID=$rowII["ID"];
echo("<tr><td></td><td><a href='ModelView.php?ID=$ID'>$Mdl</a></td></tr>");}}
Any advice/assistance is greatly appreciated.
r/s
Still Learning