This is a discussion on "[SOLVED] Help with HTML form to database (mysql/php)!" within the PHP Forum section. This forum, and the thread "[SOLVED] Help with HTML form to database (mysql/php)! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Help with HTML form to database (mysql/php)!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] Help with HTML form to database (mysql/php)!
Hi, I'm having a little trouble with my first run at website where users can fill in a HTML form, then that data should be stored in a mysql database. I've read through the sticky on this Forum with no luck.
I've been trying to read tutorials but with no luck I was wondering if someone could read through my code and give me some pointers...A) I've created a HTML for the user FORM input. B) The FORM information is then sent to a PHP file. C) The PHP file retrieves that informations and (should) inserts it to the database. B) Here is the PHP code for "form_dyr.php"
Right now, when I type in some data and hit the submit button the page jumps to the PHP page which is blank (no SQL errors appear). But in phpMyAdmin, the data has not been inserted into the table. Any help would be great ![]() Last edited by skuliaxe; Jan 19th, 2008 at 21:59. Reason: SOLVED |
|
|
|
||||
|
Re: Help with HTML form to database (mysql/php)!
Hmm.
So try:
HTH, Jack
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: Help with HTML form to database (mysql/php)!
First off, DO NOT include your DB Connection details, edit & remove them for security!
Only thing i can think of is $_GET ? instead of post, but then again im no PHP wiz. ~Dean |
|
|||
|
Re: Help with HTML form to database (mysql/php)!
As you can all see, I´m new to all this. So thanks for all the help.
Quote:
Quote:
I´ll read up on $_GET and see if that will help me. Thank you. The PHP is echoing the right information that is entered in the Forms and there doesn't seem to be a database connection error. So shouldn't the error lie in the Insert to table part?
Last edited by skuliaxe; Jan 19th, 2008 at 21:30. |
|
|||
|
Re: Help with HTML form to database (mysql/php)!
I dont see why you used $db_table in the INSERT, I would of just put the DB name in text..but again, im no PHP wiz and i dont belive that would stop your information going in.
I dont know if this will work, but try:
instead of $result= Thats all i could find after Googling. Sorry im not much help, ~Dean |
|
|||
|
Re: Help with HTML form to database (mysql/php)!
I just solved my issue.
I had to add $link... OLD CODE
Quote:
|
|
|||
|
Re: Help with HTML form to database (mysql/php)!
Congrats on solving it yourself, that was my next suggestion. Honest! lol
[SOLVED] (Always wanted to do that) ~Dean |
|
||||
|
Re: Help with HTML form to database (mysql/php)!
Quote:
Marked as solved.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Creating multiple dynamic list boxes from mysql database | davibugi | PHP Forum | 11 | Nov 20th, 2007 06:12 |
| [SOLVED] Linking php code to a form & mysql database | longstand | PHP Forum | 21 | Oct 9th, 2007 16:40 |
| php/mysql database fields into html list/menu | csun | PHP Forum | 4 | Jul 27th, 2007 16:04 |
| How to connect flash form with Mysql database | shenbagarajan | Flash & Multimedia Forum | 6 | Jan 20th, 2006 19:59 |