Skip to content

Commit 031e690

Browse files
Update README.md
1 parent ea25187 commit 031e690

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,16 @@ require_once 'vendor/autoload.php';
2121
//Include the classes directly from path
2222
require_once 'vendor/esiokugbechoice/codeboxsql/dist/payments.php';
2323

24-
//mysqli USAGE
24+
$host = 'localhost';
25+
$user = 'root';
26+
$pass = '';
27+
$database = 'mailer';
28+
29+
$mysqli = new codeboxsql\mysql($host, $user, $pass, $database);
30+
2531
//INSERT
2632
$mysqli->insertInto('tableOne',array('name' => 'lolo' , 'deg' => '100')); //return string
33+
2734
//SELECT
2835
//Single Select
2936
$mysqli->singleSelect('accounts',array('id' => '60' , 'mobile' => '+2348023775657'), 'fetch', array('ORDER BY' => 'rand()' , 'LIMIT' => '3')); //return array
@@ -36,7 +43,7 @@ $mysqli->multiSelect(array('accounts' => 'a' , 'bvn' => 'b'),array('a.id' => '60
3643

3744

3845
## Examples
39-
Look to the scripts in the `/examples` directory in your browser. You will have to change the api_key and token in the example files to your own.
46+
Look to the scripts in the `examples.php` file in your browser.
4047

4148

4249
## Contributing

0 commit comments

Comments
 (0)