Blank rows are being inserted after every time i add values in row in my DATABASE
<p>I have following codes and it runes successfully and says that data successfully entered but when i check the database table, every time i insert data (Despite of that successful operation) i get one blank row.
Inshort no data is being inserted although the code says operation successful</p>

<p>CODE:
<strong>dbconnect.php</strong></p>

<pre><code>&lt;?php
$host= "host";
$user = "user";
$password = "pass";
$db = "db";

 $con = mysqli_connect($host,$user,$password,$db);
 if (!$con) 
 {  echo "Failed to Connect"; }
 else
 {  echo "Connection successful";}
 ?&gt;
</code></pre>

<p>CODE:<strong>addInfo.php</strong></p>

<pre><code>&lt;?php
require "dbconnect.php";
$username = $_POST["username"];
$email = $_POST["email"];
$mobile = $_POST["mobile"];
$flag = false;
$sql = "insert into userInfo values('$username','$email','$mobile');";
$flag=mysqli_query($con,$sql);
if($flag!==false)
{
    echo "Data inserted successfully!";
}
else
{
echo "Error in insertion" . mysqli_error($con);
}
?&gt;
</code></pre>

<p>CODE:<strong>index.php</strong></p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Add Information&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action="addinfo.php"&gt;
&lt;table&gt;
    &lt;tr&gt;
    &lt;td&gt;Name:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" name="name"/&gt;&lt;/td&gt;
    &lt;td&gt;Email:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" name="email"/&gt;&lt;/td&gt;
    &lt;td&gt;Mobile:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" name="mobile"/&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
&lt;input type ="submit" value="Submit" /&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Any type of help you guys can do,please proceed,</p>