Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 27th, 2008, 08:25 PM
Dave
Guest
 
Posts: n/a
Default PHP MYSQL Table help

Ok so i have a database with a table users. The users each have a
unique id. Now i want to create another table called profile where the
users can edit their profile and it will be stored in the profile
table. But i need to somehow connect the tables together so when the
user saves itll save the information in the table profile under their
id that they have in the users table.

Help!
  #2  
Old March 27th, 2008, 09:15 PM
The Natural Philosopher
Guest
 
Posts: n/a
Default Re: PHP MYSQL Table help

Dave wrote:
Quote:
Ok so i have a database with a table users. The users each have a
unique id. Now i want to create another table called profile where the
users can edit their profile and it will be stored in the profile
table. But i need to somehow connect the tables together so when the
user saves itll save the information in the table profile under their
id that they have in the users table.
>
Help!
Select *from profile, user where profile.user=$userid

update profile set () where profile,.user=$userid.
  #3  
Old March 27th, 2008, 09:15 PM
sheldonlg
Guest
 
Posts: n/a
Default Re: PHP MYSQL Table help

Dave wrote:
Quote:
Ok so i have a database with a table users. The users each have a
unique id. Now i want to create another table called profile where the
users can edit their profile and it will be stored in the profile
table. But i need to somehow connect the tables together so when the
user saves itll save the information in the table profile under their
id that they have in the users table.
>
Help!
Another suggestion is to get a copy of MS Access. It has a good
graphical query builder. After you build the query, look at the SQL
statement. You can learn a lot that way in the beginning stages of
learning SQL.
  #4  
Old March 27th, 2008, 09:25 PM
sheldonlg
Guest
 
Posts: n/a
Default Re: PHP MYSQL Table help

The Natural Philosopher wrote:
Quote:
Dave wrote:
Quote:
>Ok so i have a database with a table users. The users each have a
>unique id. Now i want to create another table called profile where the
>users can edit their profile and it will be stored in the profile
>table. But i need to somehow connect the tables together so when the
>user saves itll save the information in the table profile under their
>id that they have in the users table.
>>
>Help!
>
Select *from profile, user where profile.user=$userid
>
update profile set () where profile,.user=$userid.
No comma before the .user (we all make typos)
  #5  
Old March 27th, 2008, 09:55 PM
Dave
Guest
 
Posts: n/a
Default Re: PHP MYSQL Table help

Thanks for the help!
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles