PHP code example of mohiwalla / php-mysql
1. Go to this page and download the library: Download mohiwalla/php-mysql library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mohiwalla / php-mysql example snippets
$con = new DB("localhost", "root", "", "shoppy");
$query = "SELECT * FROM users;";
$result = $con->query($query);
while ($row = mysqli_fetch_object($result)) {
echo print_r($row, true);
}