Mysql insert query isn't working in php file
<p>I am new to php and trying to insert some values to my database table but query isn't working when I am passing values by php variables. The same query was working with static values.</p>

<p>I am making my database connection in init.php and the variable in there for same is $dbc.</p>

<pre><code>&lt;?php
require "init.php";

$mobile = "100004";
$email = "vikas4@web";
$password = "4444"

$stmt = mysqli_prepare($dbc, "INSERT INTO user_login (user_mobile, user_email, user_pwd) values(?, ?, ?)";
mysqli_stmt_bind_param($stmt, "sss", $mobile, $email, $password);
echo "after sql_query";

?&gt;
</code></pre>

<p>For more detail, When I am replacing my $sql_query with below static code, it is inserting into database.</p>

<pre><code>$sql_query = "INSERT INTO user_login (user_mobile, user_email, user_pwd) values('1000055', 'vikas55@web', '5555')"; 
</code></pre>