All pastes #41503 Raw Edit

Untitled

public text v1 · immutable
#41503 ·published 2006-02-13 23:37 UTC
rendered paste body
$result=execute_query("select invoice_id from invoice_per_client order by record_num","select");
if($invoice_id=='')
$invoice_id=$result[count($result)-1][invoice_id]+1;