$pdo = new PDO('mysql:host=localhost;dbname=jmyp','root','root');
$pdo->exec('set names utf8');
$sql = "select * form admin";
$smt = $pdo->query($sql);
$rows = $smt->fetchAll(PDO::FETCH_ASSOC);
echo '<pre>';
print_r($rows);
echo '</pre>';
2023-01-07 18:19:10
$pdo = new PDO('mysql:host=localhost;dbname=jmyp','root','root');
$pdo->exec('set names utf8');
$sql = "select * form admin";
$smt = $pdo->query($sql);
$rows = $smt->fetchAll(PDO::FETCH_ASSOC);
echo '<pre>';
print_r($rows);
echo '</pre>';