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 Link to comment https://forums.phpfreaks.com/topic/108673-for-each-and-html-output/ 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. Link to comment https://forums.phpfreaks.com/topic/108673-for-each-and-html-output/#findComment-557279 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.