title: how to store data into mysql after login validation using jquery
body: <p>i am try to store data into mysql after login validation ,but how give path of database. thank you </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
  $('button').click(function(){
  var username=$('#username').val();
  var password=$('#password').val();
  
  if((username=="")&amp;&amp;(password==""))
  {
   $('div').html("&lt;span&gt;please type userpass and password&lt;/span&gt;")    ;
  }
  if(username=="")
  {
  $('div').html("&lt;span&gt;Please type Username&lt;/span&gt;");
  return false;
  }
  if(password=="")
  {
  $('div').html('&lt;span id="error"&gt;Please type Password&lt;/span&gt;');
  return false;
  }
  
  });
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div style="color:red"&gt;&lt;/div&gt;
  User Name &lt;input type="text" id="username" name="username"/&gt;&lt;br/&gt;
  Password &lt;input type="text" id="password" name="password"/&gt;&lt;br/&gt;
  &lt;button "&gt;Get JSON data&lt;/button&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>