note 120242 added to pdostatement.fetchall
| From: | Anonymous | Date: | Wed, 30 Nov 2016 14:36:06 +0000 |
| Subject: | note 120242 added to pdostatement.fetchall | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-207751@lists.php.net to get a copy of this message | ||
I use a method like this to return all the data
public function RecuperarAutos(){
$res = ConectarBD::GetConeccion();
$res->prepare("select * from autos");
$res->excecute();
$autos=array();
foreach ($res->fetch as $row) {
$x = Auto::ConstDesdeBd($row);
array_push($autos, $x);
}
}
----
Server IP: 72.52.91.14
Probable Submitter: 190.210.84.217
----
Manual Page -- http://php.net/manual/en/pdostatement.fetchall.php
Edit -- https://master.php.net/note/edit/120242
Del: integrated -- https://master.php.net/note/delete/120242/integrated
Del: useless -- https://master.php.net/note/delete/120242/useless
Del: bad code -- https://master.php.net/note/delete/120242/bad+code
Del: spam -- https://master.php.net/note/delete/120242/spam
Del: non-english -- https://master.php.net/note/delete/120242/non-english
Del: in docs -- https://master.php.net/note/delete/120242/in+docs
Del: other reasons-- https://master.php.net/note/delete/120242
Reject -- https://master.php.net/note/reject/120242
Search -- https://master.php.net/manage/user-notes.php