Preserved Topic: mysql/php: table insert problem (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 07-10-2001 08:37
im using this code for a guestbook on my site: code: <?php
|
Paranoid (IV) Inmate From: Lebanon |
posted 07-10-2001 11:26
mysql_query("INSERT INTO guests(guest_name, guest_email, guest_message) VALUES ('$fname','$femail','$fmessage')") |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 07-10-2001 13:19
i already tried that, but it makes no difference. |
Neurotic (0) Inmate Newly admitted |
posted 07-10-2001 13:35
the form tag is incorrect..."name" will be read as the variable name, not "value"...value corresponds to what is initially written inside the form field... |
Paranoid (IV) Inmate From: Lebanon |
posted 07-10-2001 16:21
Yes, timothy saw the real problem... |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-10-2001 21:32
Hmm I'm interested this sorta worked at all. I always have all sorts of problems when variables are not set. It seems with the problem with the form this should break before doing the insert. |