When the code passes through this particular snippet
$.post('checkUser.php', {'username':'abc'}, function(data) {
});
I get the following error
XML Parsing Error: no root element found
Location: file:///C:/Users/proj/checkUser.php
Line Number 49, Column 1:
This is my checkUser.php (havent much done really)
<?php
$user = 'root';
$password = 'root';
$db = 'craigslist';
$host = 'localhost';
$port = 3306;
session_start();
$conn = mysqli_connect($host,$user,$password,$db,$port);
if(!$conn){
echo "Connection failed";
exit;
}
exit()
?>
Why is it happening?