Creating Database Connection With PHP MySQLi
How to Connect MySQL Database with PHP Linking PHP and Database is one of the basic things in web programming. By connecting PHP and the database, we can interact and access the database. such as displaying data from the database, inputting data into the database, editing and deleting the database and anything related to the database. Why use MySQLi not use MySQL ? to respond to the emergence of PHP 8, the use of MySQL can no longer be used on versions of PHP 5 and above (PHP 8). so in PHP 5 and above no longer use mysql, but use mysqli Creating a New Database Finished creating databases with the name 'Widi'. next create a new folder with the name 'koneksi' in the Local Disk(C:) xampp - htdocs folder. if you have created a folder with the name connection, then create it with the name koneski.php Creating a New File then write the following syntax in the connection.php file using the Notepap++ or Sublime Text application <?php $connection = mysqli_connect("localh...