| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: May 2003
Posts: 2,187
![]() ![]() ![]() | using php with mysql and ive got my database(registration) and ive got my table (2017) and in the table there are feilds like this pupil1 pupil3 . . . . pupil30 now i dont want the information in these colums i need to select the colums because im making a absent report generator and each pupil is marked with a table colum eg bob is pupil 2 john is pupil 1 etc etc so im generating a form where they select the pupil (drop down box) but the value of the selection is the name of colum and the actual pupil name is just like a mask of the pupil id |
| |
| | #4 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | It still don't make much sense, you say you've got these fields, but you don't want the information is these columns, but you need to select these colums? Now what are you actually attempting to say? That you have a table named 2017 that stores the information of each pupil in a separate row: row1: pupil1 row2: pupil2 Or is each puple actually stored on the same row in a separate column? colum1 column2 column3 ????: NamePros.com http://www.namepros.com/programming/14984-displaying-colums.html row1: pupil1 pupil2 pupil3 ? If that's the case then I would say that's your first problem, and would think that you may want to reconsider how you designed your database. And your saying you need to display columns inside a table? What do you mean? Inside a table on a web page? Or are you just asking how to display the colums from a table in a database? I'm just guessing because I don't understand your explanation, but if you can answer my questions and/or explain a little more clearyly then maybe I can help you. |
| |
| | THREAD STARTER #5 (permalink) |
| Senior Member Join Date: May 2003
Posts: 2,187
![]() ![]() ![]() | ah sorry ok i have my table 2017 i have then got my feilds (not 100% sure what there called ) called ID, pupil1, pupil2, pupil3, pupil4, pupil5 etc etc then the entrys are stored in these "feilds"sorta thing sorry |
| |