function createOrderDetails($conn){ session_start(); $stmt=$conn->prepare("SELECT * FROM `orders` WHERE usersId=? order by ordersId desc limit 0,1"); $s