Code:
$conn = mysql_connect(SQL_HOST,SQL_USER,SQL_PASS)
or die('Could not connect to the database; ' . mysql_error());
mysql_select_db('posts', $conn)
or die('Could not select the database; ' . mysql_error());
when I run this code I get:
Code:
Could not select the database; Access denied for user ''@'localhost' to database 'posts'
No matter what the constants' values are.
