Re: Help with php to MySql...



Peschtra wrote:
Hello --

I am trying to write to a a MySql database using php, and I seem to be
hitting a wall.

I am attaching my php file in case someone can look at it. When I run
it, I don't get any error messages and all my echoes come through but
nothing is written to my database. I think I am missing something
stupid. Any help would be appreciated.

Thanks,
Peter




Inserted

Instead of all those assignments fron $_POST, take a look at the PHP
extract() function.


.



Relevant Pages

  • Re: "call to undefined function" mysql_error when adding new rows to table
    ... I have recently set up a mysql database of local pubs, ... when I try to add a new pub I get an error message "call to undefined ... Shouldn't be any PHP problem. ...
    (comp.lang.php)
  • Re: breaking into J2EE: steep curve or wrong approach?
    ... > a MySQL database. ... > I'd like to recode the PHP functionality as either servlets or JSPs. ... You need to understand servlets. ...
    (comp.lang.java.programmer)
  • Re: Executing PHP files on remote web server
    ... Is it possible to move a few of the PHP pages -- the ... from the session variables on our web server, but I'm a C and Java ... You should have the same security concern for your own MySQL database. ... users with IP addresses on our network, ...
    (comp.lang.php)
  • Mysql Search
    ... I am not sure if this is a PHP or MySql problem, ... I have a MySql database which has a field containing a list of words (comma ... The user inputs a search word to an HTML form which then ...
    (alt.php)
  • phpmailer - need help for bulk mailing
    ... I am new to php and mysql. ... I have set up the mailing list in mysql database and used phpmailer to ... The program code is similar to ... Due to the limit of the php program or SMTP server, the browser ...
    (comp.lang.php)