$db_server = mysql_connect('localhost', 'root', 'Kazibwe') or die(mysql_error());
have failed to connect and receive no error in my browser, actually the browser shows nothing. please help
$db_server = mysql_connect('localhost', 'root', 'Kazibwe') or die(mysql_error());
have failed to connect and receive no error in my browser, actually the browser shows nothing. please help
I cant comment, so I must answer you this way:
Do you have installed the following packages on your db server:
libapache2-mod-php5
php5-mysql
If not, then run the following command:
sudo apt-get install libapache2-mod-php5 php5-mysql
Do :
sudo apt-get install lamp-server^
This will install all missing files with complete LAMP-STACK
libapache2-mod
andmysql
modules installed and enabled in your apache, but first off - is this also happening when you run other pages withphp
from you browser ? – George Udosen Jan 10 '17 at 08:18<?php
tag so as to show errors on the browser:ini_set("display_errors",1);
Then edit your question and include the error message. – Parto Jan 10 '17 at 09:47