SyntaxFix
Write A Post
Hire A Developer
Questions
Loop through the array like any other Associative Array:
while($data = $datas->fetch( PDO::FETCH_ASSOC )){ print $data['title'].'<br>'; }
or
$resultset = $datas->fetchALL(PDO::FETCH_ASSOC); echo '<pre>'.$resultset.'</pre>';