SQLSTATE[HY093]: Invalid parameter number: parameter was not defined issue : <p>I am very unsure at why I am getting such an error with my code </p>

<pre><code>try {
$stmt = $connection-&gt;prepare("INSERT INTO table (path, title, era, information)
            VALUES (:path, :title, :era, :information)");
$stmt-&gt;bindParam(':path', $fname);
$stmt-&gt;bindParam(':title', $Name);
$stmt-&gt;bindParam(':era', $Era);
$stmt-&gt;bindParam(':descrip', $Description);

// insert row
$stmt-&gt;execute();
}
catch(PDOException $e) {
echo $e-&gt;getMessage();
}
echo "Upload Successful";
}
</code></pre>

<p>I have tried so many different options and I just cant fix the error</p>

<pre><code>$fname=$_FILES["userfile"]["name"];
$Name =$_POST["name"];
$Era =$_POST["era"];
$Description =$_POST["info"];
</code></pre>

<p>these are the variables I used if that helps in solving my issue</p>
