Jump to content

[SOLVED] mysqli


tejama

Recommended Posts

I need some help here folks.  I recently setup my hosting plan with GoDaddy (which I'm not happy with at all right now).  But in any case, on the comp I developed the code with, I had access to mysqli.  With GoDaddy, mysqli is not available.  In any case, could anyone explain how I can re-write this code to serve the same function?

 

function db_connect() {

  $result = new mysqli('mysql295.secureserver.net', 'user', 'pass', 'database');

  if (!$result)

    throw new Exception('Could not connect to database server');

  else

    return $result;

}

 

Thanks,

Tejama

Link to comment
https://forums.phpfreaks.com/topic/38653-solved-mysqli/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.