Smokey Posted November 13, 2011 Share Posted November 13, 2011 I'm hoping someone can help me with this, I am trying to add a count of items in circulation to the iteminfo page. This is what I have but it only shows 1 item in circulation. $itemcount=$db->num_rows($q); $q=$db->fetch_single($db->query("SELECT COUNT(*) FROM inventory WHERE inv_itemid = $itmid")); also tried: $itemcount=$db->num_rows($q); $q=$db->fetch_single($db->query("SELECT COUNT(*) FROM inventory WHERE inv_itemid = $itemcount")); and: $itemcount=$db->num_rows($q); $q=$db->query("SELECT inv_qty FROM inventory WHERE inv_itemid = $itmid"); Quote Link to comment Share on other sites More sharing options...
Smokey Posted November 13, 2011 Author Share Posted November 13, 2011 Nevermind, I figured it out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.