This is opinion based question.
I am working in Codeigniter framework I have multi-step user registration form What i am doing is collecting all data in session array validating it and inserting in database.Till now all things are working fine but now i have added image upload form along with form i.e user will upload images while registration.Now i have doubt here i have two different Controllers for user registration[where i collect all form fields data in session array] and other controller for image upload. now what currently i am doing is saving user data in database and running update query to update user row for inserting images i.e when user register a unique id is assigned to it then by that unique id i am updating user data for inserting images[sounds ridiculous] but i want along with form data images name are also added to database at once now need of update query?? I hope my question is clear??
So what i want user data +images are inserted all at once in table ?? how can i achieve this ??
i will be very thankfull for any help