Jump to content

[Solved] Need Help With Mysqli Inside A Module


mitsos

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...