Display list in columns

I’m not very clued up on php and am struggling trying to amend a website. I have a shop which uses php to call from a server but it displays the results in a row. What do I need to change to view the products in 3 columns. My current code…

<?PHP session_start(); $sid = session_id(); $date = date('d/M/Y'); $id = $_GET['id']; $querycat = "SELECT category_name FROM dbCategories WHERE category_id='$id' AND category_active='1'"; $resultcat = mysql_query($querycat); while(list($category_name1) = mysql_fetch_row($resultcat)) { ?>

Just need to learn and by searching it’s not making sense, I need someone to explain…Thank you.

Sponsor our Newsletter | Privacy Policy | Terms of Service