close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

join tables

Thread began 5/16/2011 12:53 pm by randyw2394710 | Last modified 5/17/2011 7:44 am by randyw2394710 | 993 views | 1 replies

randyw2394710

join tables

i have tables i need to join

pm1_users

Field Type Collation Attributes Null Default Extra Action
UserID int(11) No None AUTO_INCREMENT
UserEmail varchar(500) utf8_general_ci Yes NULL
UserPassword varchar(500) utf8_general_ci Yes NULL
UserFirstName varchar(50) utf8_general_ci Yes NULL
UserLastName varchar(50) utf8_general_ci Yes NULL
UserCity varchar(90) utf8_general_ci Yes NULL
UserState varchar(20) utf8_general_ci Yes NULL
UserZip varchar(12) utf8_general_ci Yes NULL
UserEmailVerified tinyint(1) Yes 0
UserRegistrationDate timestamp Yes CURRENT_TIMESTAMP
UserVerificationCode varchar(20) utf8_general_ci Yes NULL
UserIP varchar(50) utf8_general_ci Yes NULL
UserPhone varchar(20) utf8_general_ci Yes NULL
UserFax varchar(20) utf8_general_ci Yes NULL
UserCountry varchar(20) utf8_general_ci Yes NULL
UserAddress varchar(100) utf8_general_ci Yes NULL
UserAddress2 varchar(50) utf8_general_ci Yes NULL
UserGroupID int(11) No 1
UserSubscribed tinyint(1)

pm1_admin_Chat
UserID int(11) No None AUTO_INCREMENT
pm1_admin_Chat text latin1_swedish_ci No None
date timestamp No CURRENT_TIMESTAMP

pm1_admin_Chat_history
UserID int(11) No None AUTO_INCREMENT
pm1_admin_Chat text latin1_swedish_ci No None
date timestamp No CURRENT_TIMESTAMP

On the users_update.php of PowerMessenger
I need to join the pm1_users UserID, pm1_admin_Chat UserID, pm1_admin_Chat_history UserID
basically I want to create a small chat room on the update page
in the admin section under update i have a text box for chats which will go into admin chat, and show up on the specific user userid update page

pm1_User_Chat
UserID int(11) No None AUTO_INCREMENT
pm1_User_Chat text latin1_swedish_ci No None
date timestamp
pm1_User_Chat_history
UserID int(11) No None AUTO_INCREMENT
pm1_User_Chat text latin1_swedish_ci No None
date timestamp No CURRENT_TIMESTAMP
and vise versa on the update page for the registered person

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...