username : {
required : true,
remote : 'remote_check_uname.php'
},
===================
<?php
include('connection.php');
//header('Content-type: application/json');
$uname = $_REQUEST['username'];
$qurey=mysql_query("select `uname` from books_customer where uname= '$uname'");
if (mysql_num_rows($qurey) == '0') {
$output = 'true';
}
else {
$output = 'false';
}
echo $output;
?>
required : true,
remote : 'remote_check_uname.php'
},
===================
<?php
include('connection.php');
//header('Content-type: application/json');
$uname = $_REQUEST['username'];
$qurey=mysql_query("select `uname` from books_customer where uname= '$uname'");
if (mysql_num_rows($qurey) == '0') {
$output = 'true';
}
else {
$output = 'false';
}
echo $output;
?>