PHP code example of mikehenrty / thin-pdo-wrapper
1. Go to this page and download the library: Download mikehenrty/thin-pdo-wrapper 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/ */
mikehenrty / thin-pdo-wrapper example snippets
$results = PDOWrapper::instance()->select('post', array('thread_id'=>$thread_id));
$results = PDOWrapper::instance()->select('thread', array('open'=>0), $limit+1, $start, array('favs'=>'DESC'));
$invite_id = PDOWrapper::instance()->insert('invite', array(
'user_id' => $user_id,
'text' => $text,
'invite_key' => $invite_key
));