MySQL & Form

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
User avatar
Dark Dominion
Forum Newbie
Posts: 6
Joined: Mon Aug 11, 2008 11:59 am
Location: Athens, Greece
Contact:

MySQL & Form

Post by Dark Dominion »

How can i get some entries from a mysql table put them to some textboxes in a form, then edit them if necessary and save them back to the database?
nowaydown1
Forum Contributor
Posts: 169
Joined: Sun Apr 27, 2008 1:22 am

Re: MySQL & Form

Post by nowaydown1 »

Hi Dark,

I doubt you'll get too many bites on this thread because that's a fairly open ended question that would take us a really long time to explain. My advice would be to Google for 'php blog tutorial'. Most blog tutorials are really quick, and give you a standard CRUD (create read update delete) setup, which is really the heart of most PHP applications. Good way to jump into things.

Good luck!
User avatar
Dark Dominion
Forum Newbie
Posts: 6
Joined: Mon Aug 11, 2008 11:59 am
Location: Athens, Greece
Contact:

Re: MySQL & Form

Post by Dark Dominion »

Ok, will do that. Thanks :D
desmi
Forum Commoner
Posts: 64
Joined: Sun Jun 15, 2008 4:55 am

Re: MySQL & Form

Post by desmi »

basicly what you need is:

1. fetch data from mysql (simple mysql select query tutorials can be found easily)
2. echo that data to your input: <input type='text' value='HERE'>
3. make the form call eg. update.php
4. create a simple mysql update query in that update.php (tutorialcan be found also easily via google..)
User avatar
Dark Dominion
Forum Newbie
Posts: 6
Joined: Mon Aug 11, 2008 11:59 am
Location: Athens, Greece
Contact:

Re: MySQL & Form

Post by Dark Dominion »

desmi wrote:basicly what you need is:

1. fetch data from mysql (simple mysql select query tutorials can be found easily)
2. echo that data to your input: <input type='text' value='HERE'>
3. make the form call eg. update.php
4. create a simple mysql update query in that update.php (tutorialcan be found also easily via google..)
could you give an example on how to do this please? thanks.
User avatar
Dark Dominion
Forum Newbie
Posts: 6
Joined: Mon Aug 11, 2008 11:59 am
Location: Athens, Greece
Contact:

Re: MySQL & Form

Post by Dark Dominion »

any ideas?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: MySQL & Form

Post by califdon »

You have been given the information to answer your question. Take the suggestions you have been given.
Post Reply