I want to pass the result of select into an array, I using PDO.
function listar(){
$query = "SELECT codigo, nombres FROM prueba";
$BD = new ConexionDB();
$recordSet = $BD->prepare($query);
$recordSet->execute();
// In this part I need help.
// This part is a old code I need to change this parte.
$lista = array();
while($fila=$recordSet->FetchRow()) {
$lista[] = new PruebaVO($fila['codigo'], $fila['nombres']);
}...
PHP:
Select result
from PHP http://ift.tt/224tmgL
via
IFTTT
Related Post
Open all links in new windowDear Friends,
I have a website and on the tutorials web page I have 100+ urls. Few assets are link
reading lines from text file and storing in php variableHi,
I have the following in a text file:
Line1,
Line 2,
Line 3,
I have to display all lines in <
Hiding a "Channel", but not a "Category"In a php video-web-script that I'm using, I modified the (video)Upload Form by hiding the select-a-
php questions & answershello friends, As a php developer, I faced a lot of queries, I have searched many social networking
Errors after upgrade PHP version from 5.3 to 5.5
Is this course a scam?@sarahk posted a link to this course on my profile http://ift.tt/29soWPc. The site does not look li
Out Of Topic Show Konversi KodeHide Konversi Kode Show EmoticonHide Emoticon