Gettin error
PHP Parse error: parse error, unexpected T_VARIABLE in /srv/www/htdocs/vatexempt/done.php on line 19
line 19 is...
$update_order = sprintf("UPDATE orders SET orders_status = 2 AND exemption_ID = %s WHERE orders_id = %s", $colname_get_exemption_id, echo $row_get_order['orders_id']);
now, $colname_get_exemption_id is defined at these lines....
$colname_get_exemption_id = "0";
if (isset($_GET['vatid'])) {
$colname_get_exemption_id = (get_magic_quotes_gpc()) ? $_GET['vatid'] : addslashes($_GET['vatid']);
}
perhaps I been at this too long but I just cant see the problem....
Can someone spot it....
Thanks
PHP Parse error: parse error, unexpected T_VARIABLE in /srv/www/htdocs/vatexempt/done.php on line 19
line 19 is...
$update_order = sprintf("UPDATE orders SET orders_status = 2 AND exemption_ID = %s WHERE orders_id = %s", $colname_get_exemption_id, echo $row_get_order['orders_id']);
now, $colname_get_exemption_id is defined at these lines....
$colname_get_exemption_id = "0";
if (isset($_GET['vatid'])) {
$colname_get_exemption_id = (get_magic_quotes_gpc()) ? $_GET['vatid'] : addslashes($_GET['vatid']);
}
perhaps I been at this too long but I just cant see the problem....
Can someone spot it....
Thanks