Bug #18114 Updated: php can't send data to database
| From: | eru@php.net | Date: | Tue, 02 Jul 2002 23:00:40 +0000 |
| Subject: | Bug #18114 Updated: php can't send data to database | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12890@lists.php.net to get a copy of this message | ||
ID: 18114
Updated by: eru@php.net
Reported By: bamnet111@netscape.net
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: Windows ME
PHP Version: 4.2.1
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-07-02 18:45:37] bamnet111@netscape.net
.
------------------------------------------------------------------------
[2002-07-02 18:41:54] bamnet111@netscape.net
Well, my script calls for php to send data from a form into a database
using the code below. Php should have displayed a Thnak you for your
entery note to show it added the entrys. When I hit the submit button
the page just clears the form. I have checked the mysql database and
nothing is there.
if ($submit) {
// process form
$db = mysql_connect("*****", "******", "******");
mysql_select_db("mydb",$db);
$sql = "INSERT INTO employees (first,last,address,position) VALUES
('$first','$last','$address','$position')";
$result = mysql_query($sql);
echo "Thank you! Information entered.\n";
} else{
This goes on to end php and create the form.
------------------------------------------------------------------------
[2002-07-02 12:24:55] cynic@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-07-02 12:22:22] bamnet111@netscape.net
I've setup php and mysql to setup a database. I create a form send
data to the form but the dta won't go. I've tried using many different
scripts but none of them can connect. I don't get a connect error ar
any eror at all. How can i fix this problem? HELP
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18114&edit=1