PHP code example of erickmcarvalho / likepdo
1. Go to this page and download the library: Download erickmcarvalho/likepdo 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/ */
erickmcarvalho / likepdo example snippets
$dbh = new \LikePDO\LikePDO("mssql:host=127.0.0.1;dbname=Project", "sa", "123456");
$stmt = $dbh->prepare("SELECT * FROM User WHERE CodUser = ?");
$stmt->bindValue(1, 1, PDO::PARAM_INT);
$stmt->execute();
$fetch = $stmt->fetch(PDO::FETCH_OBJ);