Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Local Host Website Development Theme Issues (https://www.warriorforum.com/programming/1076588-local-host-website-development-theme-issues.html)

ajayp409 21st May 2015 06:50 AM

Local Host Website Development Theme Issues
 
Whenever I open my local host domain there is some error display on the website which is
"Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\website.com\wp-content\themes\biznez-lite\SketchBoard\functions\modules\nbar\notificati onbar.php on line 78". May I know exactly what is this and how can I resolved it?

emptee 21st May 2015 06:56 AM

Re: Local Host Website Development Theme Issues
 
Quote:

Originally Posted by ajayp409 (Post 10072255)
Whenever I open my local host domain there is some error display on the website which is
"Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:xampphtdocswebsite.comwp-contentthemesbiznez-liteSketchBoardfunctionsmodulesnbarnotificati onbar.php on line 78". May I know exactly what is this and how can I resolved it?

Sounds like a very poorly written theme - mysql_num_rows isn't really meant to be used in WP, that's what stuff like $wpdb is for!

I'd be careful with a badly made theme - it's highly likely that there are security issues with it..

But, if you want to continue with it, can you post the contents of C:\xampp\htdocs\website.com\wp-content\themes\biznez-lite\SketchBoard\functions\modules\nbar\notificati onbar.php and point out line 78?

Cheers,
Michael

Member8200 28th May 2015 03:09 AM

Re: Local Host Website Development Theme Issues
 
"Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\website.com\wp-content\themes\biznez-lite\SketchBoard\functions\modules\nbar\notificati onbar.php on line 78"

This is an error in my_sql, Please double check your codes in line 78 and will see what happens. And also check your database. And lastly, restart you XAMPP before you debug. Hope this will help you :)


All times are GMT -6. The time now is 04:16 PM.