AutoPulse v 1.0.1
 
Loading...
Searching...
No Matches
C:/Users/ivans/OneDrive/Документы/ZWA/sem/connection.php File Reference

This file handles the default database connection. Is imported in all the scripts that require one. More...

Variables

 $host = 'localhost'
 
 $dbname = 'shestiva'
 
 $username = 'shestiva'
 
 $password = 'webove aplikace'
 
 try
 

Detailed Description

This file handles the default database connection. Is imported in all the scripts that require one.

Creates PDO instance of database connection with particular host, database name, user name and user password parameters. In case of unsuccesful connection, set $error value to provide error context for the importing scripts.

Variable Documentation

◆ $dbname

$dbname = 'shestiva'

◆ $host

$host = 'localhost'

◆ $password

$password = 'webove aplikace'

◆ $username

$username = 'shestiva'

◆ try

try
Initial value:
{
$pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8mb4", $username, $password)
$username
Definition connection.php:23
$password
Definition connection.php:24
if(! $user) catch(PDOException $e) $pdo
Definition myprofile.php:59