Originally Posted by
citapinc
I'm in the process of updating the Sage Exchange/Net1 payment processing code and I'm stuck at something that seems simple.
I'm looking for the variable that stores the order number that's being charged. Right now the code is doing the following to get the next order number and it's not working:
//assigns an orderID
$last_order_id = $db->Execute("select * from " . TABLE_ORDERS . " order by orders_id desc limit 1");
$new_order_id = $last_order_id->fields['orders_id'];
$new_order_id = ($new_order_id + 1);
However instead of returning a value of 1005
Bookmarks