title: I dont know what is wrong with my html and php code.It gives Error:Query was empty
body: <p><code>&lt;body&gt;</code></p>
  
  <pre><code>&lt;h1&gt;&lt;center&gt;PHARMA DEVELOPMENT&lt;/center&gt;&lt;/h1&gt;
  &lt;form name="reg" action="insert.php"  method="post"&gt;
  &lt;table width="274" border="0" align="center" cellpadding="2" cellspacing="0"&gt;
  &lt;tr&gt;
  &lt;td width="95"&gt;&lt;div align="right"&gt;username:&lt;/div&gt;&lt;/td&gt;
  &lt;td width="171"&gt;&lt;input type="text" name="phpro_username" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;div align="right"&gt;Password:&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="phpro_password" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;div align="right"&gt;city:&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="city" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;div align="right"&gt;state:&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="state" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;div align="right"&gt;Country.:&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="country" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;div align="right"&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input name="submit" type="submit" value="Submit" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;      
  &lt;/body&gt;
  
  
  insert.php `&lt;?php`
  </code></pre>
  
  <p><code>$con = mysql_connect("localhost","uai","dev@123");</code><br>
  <code>if (!$con)</code><br>
  <code>{</code>    </p>
  
  <pre><code>die('Could not connect: ' . mysql_error());
  }
  mysql_select_db("reference", $con);
  
  $username =$_POST['phpro_username'];
  $password =$_POST['phpro_password'];
  $city =$_POST['city'];
  $state =$_POST['state'];
  $country =$_POST['country'];
  $result = mysql_query("INSERT INTO phpro_salsrep(phpro_username, phpro_password, city, state, country) VALUES('$username','$password','$city','$state','$country')");
  if (!mysql_query($result,$con))
  {
  echo "inserted sucessfully";
  }
  else
  {
  die('Error:' .mysql_error());
  }
  mysqli_close($con);
  ?&gt;
  </code></pre>