Hi
i'm totally new with PDO but i'm thinking it might be good to reuse the userspice connection. so if anyone could give a hint in how i loop out the data i got with below query i would be grateful.
i'm totally new with PDO but i'm thinking it might be good to reuse the userspice connection. so if anyone could give a hint in how i loop out the data i got with below query i would be grateful.
$clist = DB::getInstance()->query("SELECT * FROM company")
echo $clist->count() works just fine but i cant figure out how get that to a foreach or while loop...foreach ($clist as $row) {echo $row["xyz"];} does not work...