php files connected with mysql server not working -


i started php project in netbeans , connected database in localhost/phpmyadmin. on running gives error on browser..

enter image description here

why happen? how avoid it?

here codes in project.. dbconnect.php , index.php. files saved in /var/www/html/testing/ (testing name of project).

edit : tried url localhost/testing/index.php still gets same error. enter image description here

edit2 : folder structure of /var/www enter image description here

use path localhost/testing/index.php. remove html folder url.

reason ? linux default considers php files in html folder. no need give folder name in url.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -