Jump to content
  • 0

Checking certain item in MySQL?


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.07
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

how to check certain item like "Thanatos Card" at mysql database.. i wanna see who got that card..

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   1
  • Joined:  11/06/12
  • Last Seen:  

Just search the name ID in your database.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.03
  • Content Count:  2285
  • Reputation:   748
  • Joined:  06/16/12
  • Last Seen:  

I'm forget to make this simplier.. xD

SELECT
(SELECT COUNT(*) FROM `cart_inventory` WHERE `nameid` = '1201')+
(SELECT COUNT(*) FROM `storage` WHERE `nameid` = '1201')+
(SELECT COUNT(*) FROM `guild_storage` WHERE `nameid` = '1201')+
(SELECT COUNT(*) FROM `inventory` WHERE `nameid` = '1201') AS `Result` 

change 1201 to thanatos card id

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...