How do I show the data entered into a database on a created

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Arsenal Rule
Forum Commoner
Posts: 26
Joined: Fri Apr 08, 2005 4:13 am

How do I show the data entered into a database on a created

Post by Arsenal Rule »

Basically i have created a form which is blank and it has a button saying "view data".

I have a table called "client" with the fields client_id (Auto-Increment), company_name, company_address, company_tel_no, company_email, regular/irregular.

And basically what I would want to know is that how would I be able to view the data entered into the "client" table when the "view data" button is pressed, so when the button is pressed it will show the data from the "client" table in a viewable table on the form that I have created, with the option of being able to edit or delete each of the data shown.

I hope anyone would be able to help me mate
Thank you for you time very much appreciate it Take Care :)
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

if know you the names of all of the fields in the table. Select the fields you will need to do. Output the rows with a while loop you will need to do. Insert the results into text fields you could (to make them editable), or make them links (with some fancy JS/DHTML) to modify them.

if not know you the names of the fields, "desc %tablename%" you could use to make that determination.

if need help you do with the js/dhtml, let me know...very nice indeed it can be.

Burrito
Post Reply