Guest User

Untitled

a guest
Jul 17th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1.  
  2.  
  3. // Get the number of items available
  4. $result = db_query("
  5. SELECT COUNT(id)
  6. FROM {$db_prefix}shop_inventory
  7. WHERE ownerid = {$ID_MEMBER}", __FILE__, __LINE__);
  8. $context['shop_inv']['item_count'] = mysql_result($result, 0);
  9. mysql_free_result($result);
Add Comment
Please, Sign In to add comment