I would like to know if i\'m doing fine OR fetchAll() doesn\'t work with WHILE.
here is an exemple
$db=new PDO(\"mysql:host=\" .$dbhost. \"; dbname=\
no need to loop through the recordset, because fetchAll - well - fetches all the records in one command. Nice, isn't it?
fetchAll
$rows = $page->fetchAll(PDO::FETCH_ASSOC); // $rows is an array containing all records... foreach ($rows as $row) echo $row->fieldname;