add items php functions completed

added functions for generating unique product codes for each item added
and a function which adds items into the database calling the
aformentioned functions