PHP code example of devphp-pmro / pdo-conection
1. Go to this page and download the library: Download devphp-pmro/pdo-conection 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/ */
devphp-pmro / pdo-conection example snippets
sh
open the DB_CONF.php file and enter the credentials for connecting to the database
//define the connection settings to the database connect
//inset your credentials.
DEFINE("BD",
["host" => "host",
"data_base" => "data_base",
"user" => "user",
"password"=>"password",
"port"=>"3306"]
);
default port 3306
in the example_connection directory, connection.php file
use Source\pdoConection\Conection;