This question already has an answer here:
Here i am trying to get the order info from the user and then by confirming order i want to show the order id to the user as the tracking for the order... but it showing me error as stated above my code is here:
<?php
// This block grabs the whole list for viewing
$product_list1 = "";
$sql = mysql_query("SELECT FROM orders ORDER BY id DESC LIMIT 1");
$orderCount = mysql_num_rows($sql);
if ($orderCount > 0) {
while($row = mysql_fetch_array($sql)){
$id = $row["id"];
$product_list1 .= "Your Order ID : $id ";
}
} else {
$product_list1 = "You have no products listed in your store yet";
}
?>
</div>