note 93889 rejected from pdo.query by danbrown
| From: | danbrown@php.net | Date: | Mon, 05 Oct 2009 16:41:33 +0000 |
| Subject: | note 93889 rejected from pdo.query by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161370@lists.php.net to get a copy of this message | ||
Note Submitter: php at hm2k dot org
----
The example here is not very good.
Firstly, why has the author used print over echo?
Secondly, showing users how to use this function using print_r() or var_dump() would give readers a
better example of the kind of result to expect.
My example looks like this:
<?php
$sql="SHOW TABLES FROM
$_dbname";
$r=$db->query($sql)->fetchAll();
var_dump($r);
?>