I have installed Ubuntu 13.10 and also installed MySQL and PHP. When running separately, both PP and MySQL are working fine. However when I try to connect MySQL with PHP, it does not show any errors nor will it connect. Separately PHP and MySQL are working fine. I also run this command:
sudo apt-get install php5-mysql
It shows every thing updated and that I have installed PHP and MySQL.
I used:
mysqli_connect('localhost','root','root') or die(mysqli_error());
mysqli_select_db('databasename') or die(mysqli_error());
$resources = mysqli_query('select * from users');
while ($data=mysqli_fetch_object($resources)) {
echo "<pre>";
print_r($data);
}
but the pages show a white screen.