I\'m slowly moving all of my LAMP websites from mysql_ functions to PDO functions and I\'ve hit my first brick wall. I don\'t know ho
LAMP websites
mysql_
PDO
According to the PHP documentation is says you should be able to to do the following:
$sql = "SELECT * FROM widgets WHERE something='something else'"; foreach ($database->query($sql) as $results) { echo $results["widget_name"]; }
I'm no expert, but this should work.