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
Share on other sites

user

userid username tel note

 

user_info

id userid username tel note

 

primary_key just the field id, in this case, and the userid was from the user's primary id, that why we can see everthink, useing the user's id, in both tables.

 

 

do you get it....

Link to comment
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.