2011-11-09 21:18:02
Error on Login Page
If you are asking for help, provide lots of detail so problems can be reproduced.
I want to know what could be causing this error to appear at the top of the Login Page of my Atutor site. Please advise on why this is happening and how to change it.
Error is:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/success1/public_html/www.MySite.com/specificpage/include/lib/output.inc.php on line 269
___________________
My hosting, HostGator, could not figure it out- after several calls, saying that they could not spot any obvious error in the coding. They did conclude that the entire function was affected by this and would not properly execute. The function is included below:
while ($row = mysql_fetch_assoc($result)) {
//Do not overwrite the variable that existed in the cache_template already.
//The edited terms (_c_template) will always be at the top of the resultset
//0003279
if (isset($_cache_template[$row['term']])){
continue;
}
// saves us from doing an ORDER BY
if ($row['language_code'] == $_SESSION['lang']) {
$_cache_template[$row['term']] = stripslashes($row['text']);
} else if (!isset($_cache_template[$row['term']])) {
$_cache_template[$row['term']] = stripslashes($row['text']);
}
}