/    Sign up×
Community /Pin to ProfileBookmark

Doubt about user registration??

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

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @ershadow786 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...