php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18114 php can't send data to database
Submitted: 2002-07-02 12:22 UTC Modified: 2002-07-02 19:00 UTC
Votes:2
Avg. Score:4.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: bamnet111 at netscape dot net Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.2.1 OS: Windows ME
Private report: No CVE-ID: None
 [2002-07-02 12:22 UTC] bamnet111 at netscape dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-02 12:24 UTC] 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 18:41 UTC] bamnet111 at netscape dot 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 18:45 UTC] bamnet111 at netscape dot net
.
 [2002-07-02 19:00 UTC] eru@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 19:01:32 2025 UTC