prepare($sql); $stmt->execute($variables); return $stmt->fetch(); } function db_query($sql) { global $pdo; return $pdo->query($sql); }