Newbie question
Newbie question
Hi, sorry for a bit of a simple question, but I cannot find the answer in the forum or documentation.
If I have the following table;
staff
id, name
...and I have where clause:
->where( 'staff.id', $_SESSION["staffId"], '=' )
...how can add a new staff and set the staffId to the session staffId?
Txh
Josef
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I hope this helps:
you can also do it directly in the PHP file so you do not have to worry in the client.
an example that I am using.
remeber to start the session in the php file.
Thank you both for your solutions...fabioberetta's way seems more logical to me. I'll try that.
...it worked like a charm. Thanks again!