aelouch Posted November 19, 2013 Share Posted November 19, 2013 Hi all Iam having problems getting the table to show the database fields how I want them too.Currently they show as http://kingofthespring.co.uk/furniture.htmland I would like them to show as http://kingofthespring.co.uk/beds.html============================================================================Database echo and fetch PHP code============================================================================ 1234567891011121314151617181920212223242526272829 while ($rows = mysql_fetch_array($result)) { $col++; if($col == 0) echo '<div class="wrapper">'; // create a new wrapper echo ' <article class="grid_4"> <figure class="frame2"> <img src="http://www.kingofthespring.co.uk/', $rows[image], '"style="border: 0px solid" class="index_image" /> </figure>'; echo ' <p class="color-4 prev-indent-bot">', $rows[title], '</p>'; echo'<p>', $rows[description],'</p>'; echo' <div class="wrapper"><span class="price fleft">£', $rows[price],'</span>'; echo ' <a href="', $rows[8], '" class="button fright">Read More</a></div> </article>', $col; if ($col == COLS) { $col = 0; echo '</div>'; // end wrapper } } ===========================================================================From main html page shows where the php enters the page=========================================================================== 1234567891011121314151617181920212223242526272829 <section id="content"> <div class="bg-top"> <div class="bg-top-2"> <div class="bg"> <div class="bg-top-shadow"> <div class="main"> <div class="box"> <div class="padding"> <div class="container_12"> <div class="wrapper"> <div class="grid_12"> <div class="indent-left p2"> <h3 class="p0">Latest Furniture Deals</h3> </div> <?php include 'product.php'; ?> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> Any help would be great.RegardsAnt Link to comment https://forums.phpfreaks.com/topic/284069-table-alignment/ Share on other sites More sharing options...
Barand Posted November 19, 2013 Share Posted November 19, 2013 You have already posted on this topic. DON'T DOUBLE POST Link to comment https://forums.phpfreaks.com/topic/284069-table-alignment/#findComment-1459065 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.