Answers for "create connection with database in php using pdo"

PHP
3

pdo db connection

<?php
$pdo = new PDO('mysql:host=localhost;dbname=databasename', 'username', 'password');
?>
Posted by: Guest on September-23-2020
0

php pdo sql server connect

$db = new PDO("sqlsrv:Server=YouAddress;Database=YourDatabase", "Username", "Password");
Posted by: Guest on February-05-2020

Code answers related to "create connection with database in php using pdo"

Browse Popular Code Answers by Language