notorm
notorm copied to clipboard
Direct query
Hello , sorry for my English . I wanted to know how do I write a query "by hand " . I would need to run this query : " SHOW TABLES " to read the list of database tables . Thanks for your help.
Not a NotORM question, you can do that with PDO.
$db = new PDO('mysql:dbname=test;host=localhost', 'test', 'test');
$result = $db->query("show tables");
while ($row = $result->fetch()) {
var_dump($row);
}