Moez Posted September 21, 2014 Share Posted September 21, 2014 if (!$db_conn = new mysqli('localhost', 'poll', 'poll', 'poll')) { echo 'Could not connect to db<br />'; exit; } in new mysqli() what are parameter use , poll is db or password ?? Quote Link to comment https://forums.phpfreaks.com/topic/291194-db-not-connected/ Share on other sites More sharing options...
Barand Posted September 21, 2014 Share Posted September 21, 2014 http://uk1.php.net/manual/en/mysqli.construct.php See example #1 Quote Link to comment https://forums.phpfreaks.com/topic/291194-db-not-connected/#findComment-1491698 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.