Hello stackoverflow ,
SO , I've been trying to display some values in my MYSQLI database using oop in php but unable to do it.
Please how do i do it ?
Thanks
To use PDO is apparently the best way to display data from MySQL database using OOP in PHP
$stmt = $Connection->prepare("SELECT * FROM countries WHERE name = ?");
$stmt->execute(["name_for_search"]);
$data = $stmt->fetchAll();
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments