I have upgraded PHP from 5.4 to 5.5, and there was a WARNING of mysql functions being deprecated. I have upgraded by using
$conn = mysqli_connect(DB_SERVER, DB_USER, DB_PASSWORD, DB_DATABASE);
and using mysqli_query
and similar functions, where the syntaxis is almost identical. I am using the procedural method, so I only change mysql_query (its counterpart function receives one more parameters, namely the database object) and because it is abstracted in a function, I only need to have a global $conn in one or two functions, and the rest of the code is almost identical, changing mysql_fetch_object by mysqli_fetch_object, etc., so the impact in code rewriting is minimal.
Is there some better form of upgrading to improve my queries, I find this modification somehow strange and that could not take the best benefits from the upgrade.