Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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::
- OOP seems to work great (love the class btw). I can use our built-in configuration variables and do:
- $mdb = new MeekroDB($config['mysql']['host'], $config['mysql']['username'], $config['mysql']['password'], $config['mysql']['db']);
- $users = $mdb->query("SELECT username FROM users");
- var_dump($users);
- And get the expected results. However, I'm not having the same luck with the static methods.
- MDB::$host = $config['mysql']['host'];
- MDB::$user = $config['mysql']['username'];
- MDB::$password = $config['mysql']['password'];
- MDB::$dbName = $config['mysql']['db'];
- $users = MDB::query("SELECT * FROM users");
- Gives me
- Undefined index: param_char, named_param_seperator, success_handler and all those sorts of errors.
- I totally get why you wouldn't want me modding your class, but I hope it would be beneficial for you as well.
- Any help you can give me would be appreciated.
- Dan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement