[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 … Read more

[Solved] use of in php and in wamp

I assume it doesn’t have anything to do with WAMP, and I’m not even sure I understand the situation fully, because you say “Strings in php cant have the characters <> in them in the wamp environment” (I interpret it as: It doesn’t work with WAMP) and then directly afterwards “It all works fine in … Read more

[Solved] wamp / php error Fatal error: Class ‘mysqli_connect’ not found in C:\wamp\www\finalproject\Connections\Main_DB.php on line 9 [duplicate]

Code should be <?php #FileName = “Connection_php_mysql.htm” #Type = “MYSQL” #HTTP = “true” $hostname_Main_DB = “localhost”; $database_Main_DB = “mydb”; $username_Main_DB = “root”; $password_Main_DB = “”; $con = mysqli_connect($hostname_Main_DB,$username_Main_DB,$password_Main_DB, $database_Main_DB) or die ( “Failed to connect to MySQL: ” . mysqli_connect_errno()); $db=mysqli_select_db($database_Main_DB,$con) or die( “Failed to connect to MySQL: “.mysqli_connect_errno()); ?> You should remove “new”. For … Read more