Hi
I'm a newbie to php and I need help with some code
I have 3 tables
- Users - UserID | Firstname | Lastname | Email | Etc.
- Event = EventID | EventName
- EventRegistration = EventRegID | UserID | EventID
I need help with a script with the following:
New User
Check if New User exist then
Insert NewUser Record if Users doesn't exist
and then Insert UserID and EventID into EventRegistration Table
If User Exists then update the user record then
Insert UserID and EventID into EventRegistration Table
Any help would be GREATLY appreciated.
Thank You