https://phpdelusions.net/pdo#query
$stmt = $pdo->query('SELECT name FROM users');
while ($row = $stmt->fetch())
{
echo $row['name'] . "\n";
}
I was told on another forum that ALL sql had to be prepared
SQL
Prepare
Execute
but the above example does not use prepare or execute. It dosn't matter if I use local host or not. I am after an example of the use of returning a record set.