php
query("SELECT * FROM users");
while ($row = $stmt->fetch()) {
echo $row['username'] . ' - ' . $row['email'] . '
'; } } catch (PDOException $e) { echo 'Connection failed: ' . $e->getMessage(); } ?>
'; } } catch (PDOException $e) { echo 'Connection failed: ' . $e->getMessage(); } ?>
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-