MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
How do I fix this error?
AuthorText
webmaster_imds
Junior Member

Posts: 15
Contributes: 15

Gender: _MALE_
Online: No

Version: MemHT Portal 4.0.1
Country: Brazil
Languages: English, Espaņol, Syriac, Arabic, Portuguese, Japanese, Chinese, Afrikaans, Russian, Vietnamese, italian, Korean, Dutch, Swedish, Turkish, Thai
Date: 01/12/2009 23:49
How 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
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7300
Contributes: 4879

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 02/12/2009 00:16
Re: 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?
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
webmaster_imds
Junior Member

Posts: 15
Contributes: 15

Gender: _MALE_
Online: No

Version: MemHT Portal 4.0.1
Country: Brazil
Languages: English, Espaņol, Syriac, Arabic, Portuguese, Japanese, Chinese, Afrikaans, Russian, Vietnamese, italian, Korean, Dutch, Swedish, Turkish, Thai
Date: 02/12/2009 00:18
Re: How do I fix this error?
#post22723
sorry, I'm reinstalling the website to test again!
visit my portal: http://www.kmkgames.com
Delete Edit Quote
 
webmaster_imds
Junior Member

Posts: 15
Contributes: 15

Gender: _MALE_
Online: No

Version: MemHT Portal 4.0.1
Country: Brazil
Languages: English, Espaņol, Syriac, Arabic, Portuguese, Japanese, Chinese, Afrikaans, Russian, Vietnamese, italian, Korean, Dutch, Swedish, Turkish, Thai
Date: 02/12/2009 00:23
Re: How do I fix this error?
#post22724
visit my portal: http://www.kmkgames.com
Delete Edit Quote
 
slashado
Donator

Posts: 323
Contributes: 350

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Portuguęs, Inglęs (via Google), e todas as outras (via google)
Date: 02/12/2009 12:07
Re: 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 Smile
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Soon, Virtual Store with Modules and Templates for MemHT!
Eager for MemHT 5
Delete Edit Quote
 
webmaster_imds
Junior Member

Posts: 15
Contributes: 15

Gender: _MALE_
Online: No

Version: MemHT Portal 4.0.1
Country: Brazil
Languages: English, Espaņol, Syriac, Arabic, Portuguese, Japanese, Chinese, Afrikaans, Russian, Vietnamese, italian, Korean, Dutch, Swedish, Turkish, Thai
Date: 02/12/2009 16:17
Re: 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 Smile


worked here, thank you for your help!
visit my portal: http://www.kmkgames.com
Delete Edit Quote
 
Reply
Tags error
Twitter updates...
MemHT Wiki
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.231

Username
Password
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo