Please have a look at this code snippet -
while ($row = $getForums_data->fetchAll(PDO::FETCH_ASSOC)) {
I've tried different variations of the above but it keeps putting me in the loop of death. Can anybody tell what is wrong here? The query isn't wrong because I tested it and it works fine. But the while loop doesn't end.
$getForums_data->fetchwhileloop withfetchAll()? The manual surely doesn't state that. Did you read the function synopsis in the manual at all?