$sql = "SELECT * FROM orders WHERE ordercode = '$oc' AND order_status = '$pendingorderstatus'";
$sqlresult = mysql_query($sql);
$pendingorderrow = mysql_fetch_array($sqlresult);
print_r($pendingorderrow);
Guys, I have the code above to retrieve records from the database, but it will only retrieve 1 row of in array format. I have multiple row of same ordercode and pendingorderstatus in the database, why it doesn't retrieve all the records/rows?