• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Website bug! Help please:)

gerard95

Keep cool :)
Joined
Dec 31, 2011
Messages
276
Reaction score
16
I get these errors at the top of my website:

Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 12 in /home/otsmanager/www/public_html/engine/function/general.php on line 102 Call Stack: 0.0002 662640 1. {main}() /home/otsmanager/www/public_html/index.php:0 0.0003 705312 2. require_once('/home/otsmanager/www/public_html/engine/init.php') /home/otsmanager/www/public_html/index.php:3 0.0041 1857008 3. getCache() /home/otsmanager/www/public_html/engine/init.php:38 0.0041 1857352 4. mysql_result(resource(12) of type (mysql result), 0, 'cached') /home/otsmanager/www/public_html/engine/function/general.php:102

And at engine/function/general.php at line 102, I've got this:
// Get last cached
function getCache() {
return mysql_result(mysql_query("SELECT `cached` FROM `znote`;"), 0, 'cached');
}

Any clue of how to fix this? Thank you a lot!
 
Solved by changing this:
function getCache() {
return mysql_result(mysql_query("SELECT `cached` FROM `znote`;"), 0, 'cached');
}

to:

function getCache() {
return @mysql_result(mysql_query("SELECT `cached` FROM `znote`;"), 1, 'cached');
}
 
Back
Top