Php – Get the maximum value of second clause
i want to get the order id maximum by the relative user id $order_id = "select * from products_orders where order_user_id = $user_id AND MAX(order_id) "; $ord_del = mysqli_query($con,$order_id) ; $ord_row = mysqli_fetch_assoc($ord_del); i try this method but this wont…