Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct query #104

Open
likedo opened this issue Jul 7, 2015 · 1 comment
Open

Direct query #104

likedo opened this issue Jul 7, 2015 · 1 comment

Comments

@likedo
Copy link

likedo commented Jul 7, 2015

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.

@Langmans
Copy link

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants