asad_black Posted August 19, 2009 Share Posted August 19, 2009 this is my sample page ...! http://tutioninn.com/wallpaper.php in which images in a table show in a vertical direction but i want to show it horizontal way..! like this page: http://neosmart.net/gallery/v/wallpapers/Vista/official/Textures/ this is my code of selecting record...! if u have better code from this code kindly reply me as soon as possible. $sql = "SELECT * FROM wallpapers ; $result = mysql_query($sql); echo "<table border='1' cellpadding='3' cellspacing='3' width='60%'>"; echo "<tr>"; // while there are rows to be fetched... while ($list = mysql_fetch_assoc($result)) { // echo data { echo "<td ><a href=\"idpage.php?id=" . $list["id"] . "\"><img src=\"" . $list["w_th"] . "\" ></a></td>"; echo "<td ><a href=\"idpage.php?id=" . $list["id"] . "\">". $list['w_name']. "</a>"; echo "</td>"; } echo "</tr>"; } Link to comment https://forums.phpfreaks.com/topic/171023-how-to-show-images-horizntally-by-extracting-records-from-database/ Share on other sites More sharing options...
Monadoxin Posted August 19, 2009 Share Posted August 19, 2009 You just need to fix the structure of your table. Create more columns for the table, and break it into rows after so many. Link to comment https://forums.phpfreaks.com/topic/171023-how-to-show-images-horizntally-by-extracting-records-from-database/#findComment-901996 Share on other sites More sharing options...
asad_black Posted August 20, 2009 Author Share Posted August 20, 2009 for example:( Link to comment https://forums.phpfreaks.com/topic/171023-how-to-show-images-horizntally-by-extracting-records-from-database/#findComment-902683 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.