PHP code example of nowendwell / mysqli-class
1. Go to this page and download the library: Download nowendwell/mysqli-class 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/ */
nowendwell / mysqli-class example snippets
$db = new DB();
foreach( $db->getResults( "SELECT * FROM users_table" ) as $result )
{
$name = $result['name'];
$email = $result['email'];
echo "Name: $name" . "<br />" . "Email: $email" . "<br /><br />";
}