Fotiman - 1:37 pm on May 22, 2012 (gmt 0)
var dataString = 'id='+ ID +'&in='+inn+'&out='+out+'$receipt='+receipt;
I think that's supposed to be:
var dataString = 'id='+ ID +'&in='+inn+'&out='+out+'&receipt='+receipt;
That little mistake would mean that your sql string would be incorrect, as your $out value would contain too much data, and $receipt would be empty.