PHP/Mysql table code

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
MrBurns
Forum Newbie
Posts: 5
Joined: Sun Mar 14, 2004 3:14 pm

PHP/Mysql table code

Post by MrBurns »

I have 2 mysql tables, one containing a list of names, and a linking code. The linking codes are held in another table and are used to create the amount of columns(they are shown as the column headings). How can i get the appropriate names under the appropraite columns? there might be different amounts of names to go in each column.

Thanks in advance
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

Perhaps:

"INSERT INTO person (name, linkNo) VALUES ('Steve', '555')";
MrBurns
Forum Newbie
Posts: 5
Joined: Sun Mar 14, 2004 3:14 pm

Post by MrBurns »

Sorry, that obviously wasn't very clear....... this is displaying information from different databases in a single html table. I have solved the problem by using tables inside tables

Thanks though!
Post Reply