unexpected ; but i cant see why
<p>Parse error: syntax error, unexpected ';' in /home/realcas/public_html/eshop/ecms/system/classes/database.php on line 29</p>

<p>This is the code on line 29</p>

<pre><code>return empty($resultArray) ? "Error in Query " ? json_encode($resultArray);
</code></pre>

<p>this is the section of code that is the issue </p>

<pre><code>public function select($table,$options,$where,$orderby)
{
    $options = empty($options) ? "*"   : $options;
    $where  =  empty($where)   ? "1=1" : $where;
    $orderby = empty($orderby) ? ""    : $orderby;

    $qry = "SELECT $options FROM $table WHERE $where $orderby ";
    $result = mysql_query($qry) or die(json_encode(array("error",mysql_error())));

    while(($resultArray[] = mysql_fetch_assoc($result)));
    return empty($resultArray) ? "Error in Query " ? json_encode($resultArray);

    return json_encode($resultArray);
}
</code></pre>
