Jump to content

[Solved] Need Help With Mysqli Inside A Module


Recommended Posts

Posted

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 :P

 

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.

Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...