mitsos Posted November 2, 2014 Report Posted November 2, 2014 Hi all, I'm trying to make a module for a hosting panel, and for the life of me I can't seem to be able to get it to connect to mysql. Does anyone have any hints to point me in the right direction? Basically I'm trying to pass the "variables" from the module's row (eg a server) to a function to test if the connection to that row (the server) is working. Been trying it for a week now. The only progress I've made is no connection to mysqli. The non-progress was a blank page EDIT: Forgot to say that the actual row is a mysql server. So, the function needs to connect to the module's row, using its variables, over a mysql connection.
mitsos Posted November 2, 2014 Author Report Posted November 2, 2014 Never mind figured it out. Scratched mysqli and went pdo. If only I could get past the connection successful... The connection goes through, but a blank pink warning box shows up. If the connection is forced to fail (eg wrong username) the correct warning shows up... Even more headbanging.
Blesta Addons Posted November 2, 2014 Report Posted November 2, 2014 activate the debug mode in blesta config , that way you can see the errors handlers .
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now