I encountered a couple of database issues in my install. in getOINfromOCN(), the query wasn't returning any results. Changing 'received' to uppercase in the query resolved this. Also, in updateItems(), my db was throwing errors on strings with apostrophes. Swapping in Code Ignitor's $this->db->escape() function in place of addslashes() fixed this.
Thanks for looking up the CI function for escaping! That's a good catch on case sensitivity, I'll have to check back on how my queries were being made case-insensitive.
I encountered a couple of database issues in my install. in getOINfromOCN(), the query wasn't returning any results. Changing 'received' to uppercase in the query resolved this. Also, in updateItems(), my db was throwing errors on strings with apostrophes. Swapping in Code Ignitor's $this->db->escape() function in place of addslashes() fixed this.