PHP code example of silvaleal / rotyquery

1. Go to this page and download the library: Download silvaleal/rotyquery 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/ */

    

silvaleal / rotyquery example snippets


$query = new QueryBuilder();
$query->q_setTable("user");
$query->q_select();
$query->q_where('role', 'user');

print_r($query->q_builder()); // SELECT * FROM user WHERE role = 'user'