PHP code example of rafaelssucupira / fluent-sql
1. Go to this page and download the library: Download rafaelssucupira/fluent-sql 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/ */
rafaelssucupira / fluent-sql example snippets
luentSQL\SQL;
$conn = new SQL( "localhost", "db", "user", "passwd" );
$result = $conn
->prepareQuery( "SELECT * FROM users" )
->sqlCommand()
->execQuery()
->build(true);
echo json_encode($result) ;