modifiing code problem
Posted: Wed May 11, 2011 10:40 am
hy guys, i want to style a bit the shopping cart, and i need to add <ul> an <li> tags to the products function, the problem is the code loks like this:
thanks
function products() { $get = mysql_query('SELECT id, name, description, price FROM products WHERE quantity > 0 ORDER BY id DESC') or die(mysql_error()); if(mysql_num_rows($get)==0) { echo "There are no products to display!"; } else { while($get_row = mysql_fetch_assoc($get)) { echo'<p><b>'.$get_row['name'].'</b><br/>'.$get_row['description'].'<br/>'.number_format($get_row['price'],2).'€ <a href="cart.php?add='.$get_row['id'].'">Add</a><p/>'; } } }aaa where exactly thoes the html have to go! do i have to put the starting ul tag above the while loop? and the li inside of it?
thanks