This while loop causes a Fatal error: Maximum execution time of 30 seconds exceeded. The query IS working. I tested the query in phpmyadmin.
Nothing is inside the loop in order to test whether it's content caused the error. It looks like the while loop is overloading. It seems that the script takes too long to load (thinking the query is too extended), not seeing any possibilities the loop to be infinite.
while($tags_db = mysqli_fetch_array(mysqli_query($link,
"SELECT *
FROM zk_terms
WHERE parent_id = 1 AND parent_type = 'archive' AND taxonomy = 'tag'"))){
}
$tags_db = mysqli_fetch_array(mysqli_query($link, "SELECT * FROM zk_terms WHERE parent_id = 1 AND parent_type = 'archive' AND taxonomy = 'tag'"))Second line:while($tags_db)?