Zen Follower
- Join Date:
- Jun 2006
- Posts:
- 298
- Plugin Contributions:
- 0
Display number of pending orders on main site
I would like to be able to display for our customers how many orders we currently have in our processing queue. I tried the following query, but I must have something wrong. I can't determine why it's not showing the count. Can anyone help me sort this?
$query = "select count(*) as count from " . TABLE_ORDERS . " where orders_status = '114'";
$result = mysql_query($query);
$values = mysql_fetch_assoc($result);
$num_rows = $values['total'];
echo $num_rows;