In case there's confusion, these lines:
PHP Code:
include("../inc/config.php");
$db = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME);
Don't need to be modified. It's actually retrieving those variables from the included file above it. This means you won't have to add your database info to every single ajax page you need!