Dragon Blade Posted July 20, 2013 Posted July 20, 2013 Hello there MWG! I need your help guys! I am trying to make all peoples inventory not show the itemtypedrugs along with item. This is my query $inv = mysql_query( "SELECT `inv_qty`, `itmsellprice`, `itmid`, `inv_id`, `effect1_on`, `effect2_on`, `effect3_on`, `itmname`, `weapon`, `armor`, `itmtypename` FROM `inventory` AS `iv` INNER JOIN `items` AS `i` ON `iv`.`inv_itemid` = `i`.`itmid` INNER JOIN `itemtypes` AS `it` ON `i`.`itmtype` = `it`.`itmtypeid` WHERE `iv`.`inv_userid` = {$userid} ORDER BY `i`.`itmtype` ASC, `i`.`itmname` ASC"); How do I make it not show the item drugs? Quote
KyleMassacre Posted July 21, 2013 Posted July 21, 2013 WHERE `iv`.`inv_userid` = {$userid} && it.itmtypeid != <the item type id here> Quote
Dragon Blade Posted July 21, 2013 Author Posted July 21, 2013 Thanks Kyle! That worked perfect! Quote
Dominion Posted July 21, 2013 Posted July 21, 2013 Can you please start giving your threads more descriptive names. For example - "inventory query help" rather then simply "Help!". Quote
Dragon Blade Posted July 21, 2013 Author Posted July 21, 2013 Sorry about that, just not good with titles..but Ill try next time. Quote
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.