Page 1 of 1
MySQL & Form
Posted: Mon Aug 11, 2008 12:07 pm
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?
Re: MySQL & Form
Posted: Mon Aug 11, 2008 9:20 pm
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!
Re: MySQL & Form
Posted: Tue Aug 12, 2008 1:44 am
by Dark Dominion
Ok, will do that. Thanks

Re: MySQL & Form
Posted: Tue Aug 12, 2008 6:13 am
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..)
Re: MySQL & Form
Posted: Tue Aug 19, 2008 1:38 pm
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.
Re: MySQL & Form
Posted: Wed Aug 20, 2008 5:41 am
by Dark Dominion
any ideas?
Re: MySQL & Form
Posted: Wed Aug 20, 2008 5:15 pm
by califdon
You have been given the information to answer your question. Take the suggestions you have been given.