Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. Hi, this is Dan from UserSpice. We are a PHP user management system that is sort of a quasi framework. For the past few years, I have had people ask me for compatibility with Meekro. I've helped a few people hack it together, but I decided to write an actual plugin (with links to your commercial license page, of course). We also have a class DB, so it obviously will require minimal modification. I don't want to do any more hacking to your class than I have to, so at the moment, I did a simple rename of class DB to class MDB and a find/replace for DB:: to MDB::
  2.  
  3. OOP seems to work great (love the class btw). I can use our built-in configuration variables and do:
  4. $mdb = new MeekroDB($config['mysql']['host'], $config['mysql']['username'], $config['mysql']['password'], $config['mysql']['db']);
  5.  
  6. $users = $mdb->query("SELECT username FROM users");
  7. var_dump($users);
  8.  
  9. And get the expected results. However, I'm not having the same luck with the static methods.
  10. MDB::$host = $config['mysql']['host'];
  11. MDB::$user = $config['mysql']['username'];
  12. MDB::$password = $config['mysql']['password'];
  13. MDB::$dbName = $config['mysql']['db'];
  14. $users = MDB::query("SELECT * FROM users");
  15.  
  16. Gives me
  17. Undefined index: param_char, named_param_seperator, success_handler and all those sorts of errors.
  18.  
  19. I totally get why you wouldn't want me modding your class, but I hope it would be beneficial for you as well.
  20.  
  21. Any help you can give me would be appreciated.
  22. Dan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement