LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2012, 12:52 AM   #1
PradeepRahul
LQ Newbie
 
Registered: Dec 2011
Location: Chennai
Posts: 10

Rep: Reputation: Disabled
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??
 
Old 01-07-2012, 02:31 AM   #2
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
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

Last edited by AnanthaP; 01-07-2012 at 02:37 AM.
 
  


Reply



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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
display external html list item in new page using php? esteeven Programming 1 08-19-2010 02:06 AM
access paging table memory using another page table via MMU? valpa Linux - Kernel 8 08-26-2008 03:26 PM
Building a table to display from user input: PHP, MySQL deesto Programming 11 06-11-2008 05:25 PM
php page can't display but download as php file? taiwf Linux - Software 2 03-07-2006 05:57 PM
delete records on table vickr1z Linux - Newbie 1 11-25-2004 05:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration