I've been struggling to connect my website to my MariaDB server using PHP. I've been using this PHP script:
$dbname = 'testdb'; $dbuser = 'rfradkin'; $dbpass = '****'; $dbhost = 'romfradkin.com'; $connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to connect to '$dbhost'"); mysql_select_db($dbname) or die("Could not open the database '$dbname'");
The password is correct, and the database exists. Also, I have PHP functioning and this website is running on an apache web server. Whenever I check the PHP page, I look at the console logs in chrome and see this error
GET https://romfradkin.com/test.php 500 (Internal Server Error)
Any suggestions on how to fix this problem? Thanks.