LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to display many records in PHP page in the way of table (https://www.linuxquestions.org/questions/programming-9/how-to-display-many-records-in-php-page-in-the-way-of-table-922530/)

PradeepRahul 01-07-2012 12:52 AM

How to display many records in PHP page in the way of table
 
This time i will ask my question in detail.
I am using PHP and MYSQL. I want to fetch data from mysql database say from a table to display in a PHP page. I have many records in same name. I want to display the records
that matches the name i enter in PHP page and it should return all the records of that particular name in the way of table. How to do this??

AnanthaP 01-07-2012 02:31 AM

Pseudo code:
(1) Write table header (<Table>..<TR>.. <TH> entries) onto the page.
(2) Open the mySql table
(3) While not eof,
(3a) Write the current record wthin a <TR> <TD>field1</td><td>field2</td> ... </Tr> onto the page.
(4) On eof, write the table footer (</table>

Pradeep,
Why dont you get a good book from your library or buy one about php and mysql. The above and your previous post are standard class examples and most text books will have similar examples. Better still, go for the exact book your tutor is fond of.

OK


All times are GMT -5. The time now is 01:47 AM.