SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to Add PK As Foreign Key To Existing Table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Palermo
Starting Member

25 Posts

Posted - 12/27/2013 :  10:54:02  Show Profile  Reply with Quote
I have created two tables in phpMyAdmin 3.5.8.1. comments which stores comments users post on a website and registration which stores a users registration details (username, password, e-mail etc, etc).

I want to add the username field from the registration table as a foreign key to the comments table. How do I do this in phpMyAdmin?

tkizer
Almighty SQL Goddess

USA
37157 Posts

Posted - 12/27/2013 :  12:37:27  Show Profile  Visit tkizer's Homepage  Reply with Quote
You'll want to post your question on a site that specializes in php. SQLTeam is for Microsoft SQL Server.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

Palermo
Starting Member

25 Posts

Posted - 12/27/2013 :  13:11:49  Show Profile  Reply with Quote
SQL queries are run from within the phpmyadmin console.
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
37157 Posts

Posted - 12/27/2013 :  13:27:54  Show Profile  Visit tkizer's Homepage  Reply with Quote
We can only help you with T-SQL, not with php SQL.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000