Package org.pokenet.server.network

Examples of org.pokenet.server.network.MySqlManager.query()


    /*Record Trade on History Table*/
    MySqlManager m_database = new MySqlManager();
    if(m_database.connect(GameServer.getDatabaseHost(), GameServer.getDatabaseUsername(), GameServer.getDatabasePassword())){
      m_database.selectDatabase(GameServer.getDatabaseName());
      while(!m_queries.isEmpty()){
        m_database.query(m_queries.get(0));
        m_queries.remove(0);
      }
    }
    m_database.close();
  }
View Full Code Here


        MySqlManager m = new MySqlManager();
        if(m.connect(GameServer.getDatabaseHost(),
            GameServer.getDatabaseUsername(),
            GameServer.getDatabasePassword())) {
          m.selectDatabase(GameServer.getDatabaseName());
          m.query("DELETE FROM pn_pokemon WHERE id='" + id + "'");
          m.close();
          m_boxes[box].setPokemon(slot, null);
        }
      } else {
        /*
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.