PHP code example of zw2582 / jessica
1. Go to this page and download the library: Download zw2582/jessica 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/ */
zw2582 / jessica example snippets
namespace utils\db;
class Connection
{
private $DB_driver='mysql';
private $DB_host = '192.168.40.67';
private $DB_database = 'job';
private $user = 'root';
private $password = 'Abc@123456';
public function getConn() {
$con = new \PDO($this->DB_driver.':host='.$this->DB_host.';dbname='.$this->DB_database, $this->user, $this->password);
return $con;
}
}