Hi,
I am revising my old code and replacing mysql with mysqli. Here is what I previously had for a database connection:
and here is what I have now:PHP Code:$db = mysql_connect('host', 'username', 'password');
mysql_select_db('database');
mysql_set_charset('utf8', $db);
It seems to be working fine but I just wanted to ask if there are things I should be aware of in converting from mysql to mysqli.PHP Code:$db = new mysqli('host', 'username', 'password', 'database');
$db->set_charset('utf8');
Thanks.



Reply With Quote



Bookmarks