I’m running the following code from a very basic php script, and it is not able to connect to the mysql database:
<?
mysqli_connect(Constants::DB_HOST,Constants::DB_USERNAME,Constants::DB_PASSWORD,Constants::DB_DATABASE) or die (mysqli_error());
$sql = mysqli_query("SELECT * FROM 'owners'");
while($row = mysqli_fetch_assoc($sql))
{ ?>
<p><?=$row["id"];?></p>
<? } ?>
I’m using “localhost” for the host (as instructed on the Database page in my Manage Databases page. Username, password and database are all correct, and are echoed elsewhere on my page to ensure they’re working.