LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-12-2009, 12:58 PM   #1
3vra
Member
 
Registered: Dec 2008
Distribution: ubuntu
Posts: 51
Blog Entries: 1

Rep: Reputation: 16
how to display a row of data from a database in a table format


Can someone tell me how to display a row of data from a database in a table format using php and mysql?

Last edited by 3vra; 03-12-2009 at 01:09 PM.
 
Old 03-12-2009, 02:25 PM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Here is one example; the web is full of this kind of pages. You could just as well read the official PHP site and see the commands for querying a database and how loops work, and then create a loop that wrote a html table row and put the read records to the table cells, one round per one row.
 
Old 03-13-2009, 10:25 AM   #3
3vra
Member
 
Registered: Dec 2008
Distribution: ubuntu
Posts: 51
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Sorry I wasn't more specific.What I want to happen is when the page loads the data pulled from the database can be displayed into a table format that can be edited and ultimately update the data.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SQL statement to get the last row in a table oulevon Programming 11 04-03-2009 08:30 PM
mysql alter row data kpachopoulos Programming 8 09-26-2007 02:54 AM
Display file contents in table format dresch Linux - Newbie 1 01-04-2007 09:35 AM
getting the next row from mysql database? tzouse Linux - Software 4 01-29-2006 07:17 PM
How do I select a row of info in a database file? 1rulesall Linux - Newbie 6 12-08-2003 08:27 PM


All times are GMT -5. The time now is 08:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration