Stephen_10 0 Newbie Poster

Hello All,
I have been working on a registration form for opencart for a while now. I think I am nearly there in how I have coded it.

However I just do not know where I am going wrong with it.

It is a standard form with text input fields and I just now need a file to be uploaded also on registration. I have added the upload button and added controller code just not working. I want it so it registers the path to the DB and then also uploads to a folder on the server.

This is what I have so far:

Template file: link

Controller: link

Mysql: Link

If you anyone can spot what I am doing wrong would be much appreciated.