Moderators: Moderators
How do I fix this error? Author Text
webmaster_imds Junior Member Posts: 15
Gender: Online: NoVersion: MemHT Portal 4.0.1Country: BrazilLanguages: English, Espaņol, Syriac, Arabic, Portuguese, Japanese, Chinese, Afrikaans, Russian, Vietnamese, italian, Korean, Dutch, Swedish, Turkish, Thai
Date: 01/12/2009 23:49How do I fix this error? #post22720 Site url: http://www.kmkgames.com/site/
MemHT version: MemHT Portal 4.0.1
Hosting OS: Linux
PHP and MySQL versions: MySQL 5.1 and PHP5
Note: If any of those items is missing, your post could be ignored or even closed/deleted
Hello Memht staff
how do I fix this error?
code Warning: mysql_num_rows ( ) : supplied argument is not a valid MySQL result resource in /home/kmkgames/public_html/site/inc/inc_database.php on line 102
visit my portal: http://www.kmkgames.com
mem MemHT's Dad Admin & Developer Posts: 7300
Gender: Online: NoLanguages: English, Italiano, Македонски, Српски
Date: 02/12/2009 00:16Re: How do I fix this error? #post22722 Hi
I can't see your site. It cannot establish a connection with the database. Have you touched anything?
webmaster_imds Junior Member Posts: 15
Gender: Online: NoVersion: MemHT Portal 4.0.1Country: BrazilLanguages: English, Espaņol, Syriac, Arabic, Portuguese, Japanese, Chinese, Afrikaans, Russian, Vietnamese, italian, Korean, Dutch, Swedish, Turkish, Thai
Date: 02/12/2009 00:18Re: How do I fix this error? #post22723 sorry, I'm reinstalling the website to test again!
visit my portal: http://www.kmkgames.com
webmaster_imds Junior Member Posts: 15
Gender: Online: NoVersion: MemHT Portal 4.0.1Country: BrazilLanguages: English, Espaņol, Syriac, Arabic, Portuguese, Japanese, Chinese, Afrikaans, Russian, Vietnamese, italian, Korean, Dutch, Swedish, Turkish, Thai
Date: 02/12/2009 00:23Re: How do I fix this error? #post22724 visit my portal: http://www.kmkgames.com
slashado Donator Posts: 323
Gender: Online: NoVersion: 4.0.1Country: BrasilLanguages: Portuguęs, Inglęs (via Google), e todas as outras (via google)
Date: 02/12/2009 12:07Re: How do I fix this error? #post22726 Hello Dear Webmaster, I'm not sure, but to solve your problem that is a WARNING message, you must do the following, follow the steps below:
Look in the file "inc / inc_database.php" the following lines:
Lines 100 to 105
code function get_num( $query ) {
$result = $this ->query ( $query ) ;
$num = mysql_num_rows ( $result ) ;
@mysql_free_result ( $result ) ;
return $num ;
}
Now Overwrite these lines with these:
code function get_num( $query ) {
$result = $this ->query ( $query ) ;
$num = @mysql_num_rows ( $result ) ;
@mysql_free_result ( $result ) ;
return $num ;
}
This will make that message disappear forever, or until the PHP solve make obsolete function well.
This is not the best solution to the problem and not know it's the right solution, but it should work ... in any case, we await the response from the master Mem
webmaster_imds Junior Member Posts: 15
Gender: Online: NoVersion: MemHT Portal 4.0.1Country: BrazilLanguages: English, Espaņol, Syriac, Arabic, Portuguese, Japanese, Chinese, Afrikaans, Russian, Vietnamese, italian, Korean, Dutch, Swedish, Turkish, Thai
Date: 02/12/2009 16:17Re: How do I fix this error? #post22731 quote slashado:
Hello Dear Webmaster, I'm not sure, but to solve your problem that is a WARNING message, you must do the following, follow the steps below:
Look in the file "inc / inc_database.php" the following lines:
Lines 100 to 105
code function get_num( $query ) {
$result = $this ->query ( $query ) ;
$num = mysql_num_rows ( $result ) ;
@mysql_free_result ( $result ) ;
return $num ;
}
Now Overwrite these lines with these:
code function get_num( $query ) {
$result = $this ->query ( $query ) ;
$num = @mysql_num_rows ( $result ) ;
@mysql_free_result ( $result ) ;
return $num ;
}
This will make that message disappear forever, or until the PHP solve make obsolete function well.
This is not the best solution to the problem and not know it's the right solution, but it should work ... in any case, we await the response from the master Mem
worked here, thank you for your help!
visit my portal: http://www.kmkgames.com
Hi Guest
IP: 38.107.179.231
-- Language --
Arabic Bosnian Bulgarian Danish Dutch English French Galego German Hebrew Hungarian Indonesian Italian Persian Polish Portuguese Russian Serbian Spanish Swedish Turkish Ukraine Vietnamese ----------------
Reset