Jump to content

event adder


mattsolomon

Recommended Posts

i have built an event adding script...

 

when the admin adds an event a drop down menu pulls all the users in the DB to create the event for..

 

i set the option to their full name, but the value to the userid...

 

when it stores it to the database it stores the userid as XXX for example, but i'd like to store in another field their full name according to the userid, how is this acheivable im completly baffled.

Link to comment
https://forums.phpfreaks.com/topic/229821-event-adder/
Share on other sites

sorry that hasn't made much sense to me :P

 

maybe it would help if i tell you the current tables and how they work :)

 

TABLE: Client_details

userid company firstname lastname email tel address websites username     password clientid userlevel timestamp ip

userid is the session id so changes each time

 

TABLE: events

eventid clientid occasion location date

 

i am going to add another field (full name) but i was just after the method of adding

 

hope this is clear

Link to comment
https://forums.phpfreaks.com/topic/229821-event-adder/#findComment-1183792
Share on other sites

You need the id off  the user, in every table, to get that user's info out.

 

that it?

 

 

long_user_name.

 

id  <<<< table id    ((auto_increment))

userid  <<< users id ((varchar))

username ((varchar))

surname ((varchar))

dob ((varchar))

 

 

your  EVENTS TABLE clientid is suppose to be userid your getting confused mate.....

Link to comment
https://forums.phpfreaks.com/topic/229821-event-adder/#findComment-1183793
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.