rpmorrow Posted March 23, 2010 Share Posted March 23, 2010 Hi, I try to execute the code below but I get the error "Cannot instantiate non-existent class: mysqli" so I assume it is not supported by my host. Is there an equivalent command I can use? (php5 not supported either) $dbh = new mysqli($db_host,$db_user,$db_pass,$db_name); Quote Link to comment https://forums.phpfreaks.com/topic/196204-mysqli-is-not-supported-what-is-the-equivalent-instruction/ Share on other sites More sharing options...
dstar101 Posted March 23, 2010 Share Posted March 23, 2010 $dbh = mysqli_connect($db_host,$db_user,$db_pass,$db_name); If mysqli extensions are not supported $cxn = mysql_connect($db_host,$db_user,$db_pass); mysql_select_db(db_name, $cxn); Quote Link to comment https://forums.phpfreaks.com/topic/196204-mysqli-is-not-supported-what-is-the-equivalent-instruction/#findComment-1030351 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.