wiggst3r Posted June 4, 2008 Share Posted June 4, 2008 Hi I'm trying to create a drag and drop functionality to a page. I'm using a foreach loop to loop through records of a database and output them. I have a problem though with the output on the page. As I'm pulling records from 6 columns, all the inofmration within the output is all squashed together. for example AAThis is a test messageFridayExample1 I want each of the column results to be nicely separated. My code is as follows for the foreach loop: <div id="listContainer"> <? foreach($list as $item) { ?> <div id="item_<?=$item['catid'];?>"><?=$item['briefed'];?><?=$item['category'];?><?=$item['needed'];?><?=$item['status'];?><?=$item['orderid'];?></div> <? } ?> </div> Any ideas how I can separate these results (without using html spaces) for example Thanks Quote Link to comment Share on other sites More sharing options...
phpzone Posted June 4, 2008 Share Posted June 4, 2008 put them in different div's with set width's or use a table. 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.