Welcome Guest, Not a member yet? Register   Sign In
Need your suggestions on a project's "thinking".

Hey guys,
I'm currently creating a CI project and i'm really stuck on how to cope with a situation i face. So i thought the best way to solve it was to ask someone who's more advanced here.

The situation is the following: 
I have 3 tables with data: Users, Contact info and  Pets.
These are all joined.

There will be non-registered and registered users. 

The non-registered users will submit a form with some data on (e.g. email, name and phone number) and i want from my side:
1) To check if email exists in table #1 named "Users",
2) If exists get the user_id of the existing user,
3) pass this user_id, together with phone in table #2 Contact_info
4) then finally, passing the user_id + newly created contact info id + all the other form data to table #3 Users.

The thing is that i also have upload file function in my controller and this kinda confused me.

Any ideas on how can i make it work?! 

Thank you very much!

//Life motto
if (sad() == true) {

Messages In This Thread
Need your suggestions on a project's "thinking". - by HarrysR - 08-16-2018, 03:55 PM

Theme © iAndrew 2016 - Forum software by © MyBB