i got a webserver running on my raspberry pi with mariadb installed. i can connect and use the database with my python scripts no problem. but when i try to connect with php:
<?php
     $dbhost = 'localhost';
     $dbuser = 'root';
     $dbpass = 'password';
     $conn = mysql_connect($dbhost, $dbuser, $dbpass);
     if(! $conn ) {
        die('Could not connect: ' . mysql_error());
     }
     echo 'Connected successfully';
     mysql_close($conn);
  ?>
the page is just blank. i even set the permissions of this .php file to 777. can anybody help me pelase?
 
    