Parse error: syntax error, unexpected ';' in /home/realcas/public_html/eshop/ecms/system/classes/database.php on line 29
This is the code on line 29
return empty($resultArray) ? "Error in Query " ? json_encode($resultArray);
this is the section of code that is the issue
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);
}