Im using codeigniter to make an app and want to know which is the best way to do this.
Basically I have a user log on then they create a 'client' and then input different forms for the client into different table.
My first idea was when they created a client I store the ClientID in a session variable that I could then use with my sql to make sure its input into the table.
This would work and I could make the user go through all the forms in sequence.
However the user would probably log on at the beginning of the day and work on lots of clients. I take it I could update the session variable to reflect each new client in turn.
But there will be times where they dont have to create a new client they just have to add a record for a existing one, or update an existing record.
What would be the sensible way of making this?
Basically I have a user log on then they create a 'client' and then input different forms for the client into different table.
My first idea was when they created a client I store the ClientID in a session variable that I could then use with my sql to make sure its input into the table.
This would work and I could make the user go through all the forms in sequence.
However the user would probably log on at the beginning of the day and work on lots of clients. I take it I could update the session variable to reflect each new client in turn.
But there will be times where they dont have to create a new client they just have to add a record for a existing one, or update an existing record.
What would be the sensible way of making this?