MySQL & Form
Moderator: General Moderators
- Dark Dominion
- Forum Newbie
- Posts: 6
- Joined: Mon Aug 11, 2008 11:59 am
- Location: Athens, Greece
- Contact:
MySQL & Form
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
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!
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!
- Dark Dominion
- Forum Newbie
- Posts: 6
- Joined: Mon Aug 11, 2008 11:59 am
- Location: Athens, Greece
- Contact:
Re: MySQL & Form
Ok, will do that. Thanks 
Re: MySQL & Form
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..)
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..)
- Dark Dominion
- Forum Newbie
- Posts: 6
- Joined: Mon Aug 11, 2008 11:59 am
- Location: Athens, Greece
- Contact:
Re: MySQL & Form
could you give an example on how to do this please? thanks.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..)
- Dark Dominion
- Forum Newbie
- Posts: 6
- Joined: Mon Aug 11, 2008 11:59 am
- Location: Athens, Greece
- Contact:
Re: MySQL & Form
any ideas?
Re: MySQL & Form
You have been given the information to answer your question. Take the suggestions you have been given.