Re: [PHP] Problem with inserting values into database through php

2002-09-07 Thread timo stamm
Hi Olli, I think the query string is missing an ";" Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problem with inserting values into database through php

2002-09-06 Thread bbonkosk
Just and FYI update, in case someone else has this problem... The problem was the example was using $PHP_SELF as the form action variable, of course it has been discussed on this list that in the newer versions of PHP, register_globals is turned off in php.ini, so $PHP_SELF had no real meaning,

RE: [PHP] Problem with inserting values into database through php

2002-09-06 Thread Jay Blanchard
[snip] I´m quite a newbie in making php, but I managed to run the test you suggested, but nothin happened. This time it was propably the code I did: first I added the "or die("Invalid query: $sql");" part and ran the form, but everything happened just like when refreshing a page. Then I did this

Re: [PHP] Problem with inserting values into database through php

2002-09-05 Thread Olli Sinerma
I´m quite a newbie in making php, but I managed to run the test you suggested, but nothin happened. This time it was propably the code I did: first I added the "or die("Invalid query: $sql");" part and ran the form, but everything happened just like when refreshing a page. Then I did this: $re

Re: [PHP] Problem with inserting values into database through php

2002-09-05 Thread Brad Bonkoski
The best way IMHO, to debug problems like this is to echo out your insert query to the screen and not actually run the query, or run it and make sure you use: $sql = "INSERT INTO employees (first,last,address,position) VALUES ('$first','$last','$address','$position')"; $result = mysql_query($sql