I'm trying to make a purchases add-on whereby admin users of oscommerce can store what they've bought from their suppliers on the website. I've looked around and didn't see any current add-ons which offer this service. I'm using v2.3.3. To be honest, I'm still pretty new to coding and everything so I'm trying it out for a project and maybe for future use by myself.
My knowledge of how to link the database to the php code isn't there so my database has been coming up with blank entries. What I did was to just copy bits of database codes I could understand from the categories.php file.
I'm not too sure what the php code is for making a form so I kept to another file I made which I'd rather not and make it look as "oscommerce-y" as possible.
And, I've no idea how the save button works.
Thanks in advance for taking time to read my lump of code.
This is what I've done so far.