[Solved] How to use mysql insted of mysqli in PHP


http://php.net/manual/en/intro.mysql.php

The mysql_* functions have long been deprecated, and were finally
removed in PHP 7. The mysqli_* functions are quite similar and it should be pretty easy to ‘upgrade’ a piece of code to use mysqli, even if you don’t use the extra features, like bind parameters.

But for a course, even a small difference may cause a lot of confusement, so if you really want to do this particular exam, you could downgrade to a
version prior to PHP 7.0.

The WampServer website still refers to older downloads on SourceForge. You can download WampServer 2 with PHP 5.5. That should work.

You might consider using a virtual machine to install it on, if you also want to keep your currently installed latest version.

But if you have any choice, choose another exam or course, because this one is very outdated.

If you were going to learn a more modern database API, I’d choose PDO. It’s just more modern, more flexible and feels less tied to MySQL as its only data source. So in my personal opinion you’d use mysqli to quickly upgrade from mysql, but use PDO for new developments, although opinions on this may vary. 🙂

2

solved How to use mysql insted of mysqli in PHP