RE: Changing MYSQLI to MYSQL
Your problem is probably that mysql_connect and mysqli_connect take different parameters, so just changing all references to mysql won't work unless you handle some subtle differences.
mysqli way:
mysqli_connect($host, $username, $passwd, $dbname);
To accomplish the same thing the mysql way, you have to do:
mysql_connect($host, $username, $passwd);
mysql_select_db($dbname);
Another thing I can think of off hand that will definitely break on you is mysqli_real_escape_string (I'm assuming this is used in webERP but haven't looked at the database abstraction code in a while.) mysqli_real_escape_string takes the connection as the first parameter:
mysqli_real_escape_string($conn, $query);
Whereas with mysql_real_escape_string you can just pass $query as the lone parameter.
I'm sure there are other differences between the two, but these come to mind immediately.
|