i got this error : Parse error: syntax error, unexpected ';' : <p>please help me with this error
i could not find the solution. here's the code :</p>

<pre><code>public function store_image($id) {
    $db = connection();
    $if ($db-&gt;connect_errno == 0) {
        $sql = "SELECT * from car where id='$id'";
        $res = $db-&gt;query($sql);
        while ($row = $db-&gt;fetch_assoc($res)) {
            $pic = $row['pic'];
        }
        header("content_type: image/jpg");
    }
}
</code></pre>

<p>the error says "Parse error: syntax error, unexpected ';'" on this line :</p>

<pre><code>$sql = "SELECT * from car where id='$id'";
</code></pre>

<p>thanks in advance</p>
