note 97382 deleted from sqlite3result.numcolumns by danbrown

From: Date: Fri, 16 Apr 2010 21:25:31 +0000
Subject: note 97382 deleted from sqlite3result.numcolumns by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168333@lists.php.net to get a copy of this message
Note Submitter: david dot barkman13 at gmail dot com ---- public function selectAll($table) { $results = $this->_dbConn->query("SELECT * FROM $table"); $cols = $results->numColumns(); while ($row = $results->fetchArray()) { for ($i = 1; $i < $cols; $i++) { echo $results->columnName($i) . ': '; echo $row[$i] . '<br />'; } //print_r($row); //echo 'Username: ' . $row['USERNAME'] . '<br />'; } $this->_dbConn->close(); }

« previous php.notes (#168333) next »