PHP code example of webservco / database-legacy
1. Go to this page and download the library: Download webservco/database-legacy 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/ */
webservco / database-legacy example snippets
use \WebServCo\Database\Service\Legacy\Procedural\Db;
$result = Db::query(
sprintf("SELECT something FROM somewhere WHERE id = %s"),
Db::escape($validatedInput),
);
$something = Db::result($result, 0, 0);