Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. $tabledit = new MySQLtabledit();
  2. $tabledit->database = 'owngame';
  3. $tabledit->host = 'localhost';
  4. $tabledit->user = 'root';
  5. $tabledit->pass = 'tzr9x';
  6. $tabledit->table = 'planets';
  7. $tabledit->primary_key = 'userID';
  8. $tabledit->fields_in_list_view = array('userID', 'username', 'planetname', 'resources', 'population', 'minerals');
  9. $tabledit->num_rows_list_view = 20;
  10. $tabledit->help_text = array(
  11. 'userID' => "userID",
  12. 'username' => "username",
  13. 'planetname' => "planetname",
  14. 'resources' => "resources",
  15. 'population' => "population",
  16. 'minerals' => "minerals");
  17. $tabledit->show_text = array(
  18. 'userID' => "userID",
  19. 'username' => "username",
  20. 'planetname' => "planetname",
  21. 'resources' => "resources",
  22. 'population' => "population",
  23. 'minerals' => "minerals");
  24. $tabledit->width_editor = '100%';
  25. $tabledit->no_htaccess_warning = 'off';
  26. $tabledit->database_connect();
  27. $tabledit->do_it();
  28. $tabledit->database_disconnect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement