I am trying to connect to MySQL DB and display data in an array. I have AMPPS installed and the DB is loaded into phpMyAdmin. When I try to open this PHP code the web page appears blank and gives me a 404 error.
<?php
mysql_connect("localhost","root","")or die("could not connect to mysql");
mysql_select_db("maps")or die("could not find db check spelling kimo sabi");
error_reporting(5);
$resource = mysql_query("SELECT * FROM 'locations'");
while($row= mysql_fetch_assoc($resource))
{$data[] = $row;}
print($data); die();
?>
I am using Netbeans IDE. I have tried both to run the file and to manually open it. The name of the file is default NewemptyPHP