Извиняюсь за тупой вопрос.В чем может быть проблема?
<?php
include 'auth.php';
include '../db.php';
$result = $conn->query("select * from clients");
$result1 = $conn->query("select * from portfolio");
$result2 = $conn->query("select * from workers");
$result3 = $conn->query("select * from service");
?>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$database = "salon" ;
try {
$conn = new PDO("mysql:host=$servername;", $username, $password );
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e)
{
echo "Connection failed: " . $e->getMessage();
}
?>