jdonisthorpe Posted September 27, 2006 Share Posted September 27, 2006 I am just learning php and trying to build a basic html page with columns. The following script displays all my data in one column. Now I am trying to figure out how to get it into three columns! Here is the code. Any help is greatly appreciated!$query = "SELECT * FROM products WHERE CATEGORY LIKE '%anklet%'";$result = mysql_query($query) or die ("couldnt execute query.");//Display results in a tablewhile ($row = mysql_fetch_array($result,MYSQL_ASSOC)){echo "<table>";echo "<tr>";echo "<td><a href=\"{$row['BUYURL']}\"><img src=\"{$row['IMAGEURL']}\"><br>";echo "{$row['NAME']}<br>\n";echo "{$row['PRICE']}\n";} Quote Link to comment Share on other sites More sharing options...
freakus_maximus Posted September 27, 2006 Share Posted September 27, 2006 Check out the FAQ/CODE Repository forum on phpfreaks that should answer your question.[url=http://www.phpfreaks.com/forums/index.php/topic,95426.0.html]http://www.phpfreaks.com/forums/index.php/topic,95426.0.html[/url] Quote Link to comment Share on other sites More sharing options...
jdonisthorpe Posted September 27, 2006 Author Share Posted September 27, 2006 OOoh, I really tried to find something like that. Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.