您好stackoverflow,
所以,我一直试图在php中使用oop在我的MYSQLI数据库中显示一些值,但无法做到这一点。
请问我该怎么做?
谢谢
使用PDO显然是使用PHP中的OOP从MySQL数据库显示数据的最佳方法
$stmt = $Connection->prepare("SELECT * FROM countries WHERE name = ?");
$stmt->execute(["name_for_search"]);
$data = $stmt->fetchAll();
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句