Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MySQL "Table Checking"

Comments in 'Plugin Development' started by Comedyman937, Jun 29, 2014.

  1. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    386
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    I'm tryin to make a plugin that will require Databases in order for it to work properly. I have some knowledge of MySQL databases but I'm definetly not an expert. Is there a way for me to find out one variable based on one or more others?

    For example, is it possible to find out who the owner of something is like this:
    Code:
    "SELECT * FROM table_name WHERE name=".$player->getName()."AND id=1"
    Thanks in advance!
    iFootball likes this.

Share This Page

Advertisement