i have this shopping cart in which it sends the orders to mysql database along with the date on when it was ordered: the code for the date is as follows:
<? include("includes/db.php"); include("includes/functions.php"); $max=count($_SESSION['cart']); for($i=0;$i<$max;$i++){ $pid=$_SESSION['cart'][$i]['productid']; $q=$_SESSION['cart'][$i]['qty']; $price=get_price($pid); $date=date('Y/m/d'); $user=$_SESSION['username']; $pname=get_product_name($pid); mysql_query("insert into `order` values ('','$pname','$q','$price','$date','$user')") or die(mysql_error()); it outputs the date as 2011/11,14. How do i get it to output it like the following: 14/11/2011??