I'm facing a problem here.
I bought 'Build your own database driven website using PHP & MySQL' yesterday.
I installed Apache, PHP & MySQL on Ubuntu, following the instructions given in the book.
However, when I include functions such as mysql_connect() or other mysql related functions in PHP files, they don't work!
Even the following snippet of code didn't work out -
It didn't give any output! There was a blank page!
$con = mysqli_connect("localhost","root",<my password>);
echo "Try again";
// some code
Otherwise, PHP files are running accurately(which means even Apache is working fine).
MySQL is also running fine when I access it in the terminal.
However, I'm unable too run mysql functions.
I think I squandered my money on the book.
Please help me out!!!!!