added development environment
This commit is contained in:
8
app/public/index.php
Normal file
8
app/public/index.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$pdo = new PDO('mysql:dbname=tutorial;host=mysql', 'grisu', 'secret', [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
|
||||
|
||||
$query = $pdo->query('SHOW VARIABLES like "version"');
|
||||
|
||||
$row = $query->fetch();
|
||||
|
||||
echo 'MySQL version:' . $row['Value'];
|
||||
Reference in New Issue
Block a user