title: Jquery Ajax for getting data from php mysql without refreshing the page - syntax error
body: <p>I need to get data from mysql database without refreshing the page using jquery ajax. I have a php script which is working fine. However, my JS seems to be having some problem. Here is the jquery script. Also, I am using multiple jquerys on same page like maximage and custom scrollbar.</p>
  
  <pre><code>var count = jQuery.noConflict();
  
  count('#CountryName').on ('change',function(){ 
  var Country = count('#CountryName').val();
  count.ajax({ 
    type: 'GET' ,
    url: 'getcountry2.php', 
    data: 'q=', 
  }).done(function( html ) { 
   count('#result').append(html); 
   or 
  
    count('#result').html(html); 
  });
  });
  </code></pre>
  
  <p>Here is my php</p>
  
  <pre><code>&lt;link href="main2.css" rel="stylesheet" type="text/css" /&gt;
  &lt;link href="country.css" rel="stylesheet" type="text/css" /&gt;
  &lt;?php
  $q=$_GET["q"];
  
  $con = mysql_connect('localhost', 'root', 'password');
  if (!$con)
    {
    die('Could not connect: ' . mysql_error());
    }
  $user = mysql_real_escape_string($user);
  $pwd = mysql_real_escape_string($pwd);
  
  mysql_select_db("mahc", $con);
  
  $sql="SELECT * FROM texttesti WHERE Country = '".$q."'";
  
  $result = mysql_query($sql);
  
  echo "&lt;div&gt;";
  
      while($row = mysql_fetch_array($result))
        {
  
      echo "&lt;blockquote&gt;". $row['Review'] ."&lt;/blockquote&gt;";
  
      echo "&lt;p&gt;" . $row['Name'] . " " . $row['ReasonForPanchakarma']."&lt;/p&gt;";
      }
  echo "&lt;/div&gt;";
  
  mysql_close($con);
  ?&gt;
  </code></pre>
  
  <p>Here is my HTML</p>
  
  <pre><code>&lt;p&gt;Select the Fields below to see the testimonials of your choice:&lt;/p&gt;
     &lt;p&gt;  &lt;form name="Country"&gt;
   &lt;select id="CountryName" onChange="showCountry(this.value)"&gt;
  &lt;option value=""&gt;Select a Country:&lt;/option&gt;
  &lt;option value="USA"&gt;USA&lt;/option&gt;
  &lt;option value="India"&gt;India&lt;/option&gt;
  &lt;option value="Germany"&gt;Germany&lt;/option&gt;
  &lt;option value="Russia"&gt;Russia&lt;/option&gt;
  &lt;/select&gt;
  &lt;/form&gt;
  &lt;/p&gt;
  &lt;div id="result_data"&gt;
  &lt;script type="text/javascript" src="country2.js"&gt;&lt;/script&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>