Re: [PHP] Help with scripts to add records to a database

2003-11-12 Thread Kim Steinhaug
Important to mention, that the reason why the $variable probably doesnt work is that your service provider has turned off the globals. In this case you would need, as Zhuravlev mentions, use $_POST["variable"] to insert the records. All in all, since the factory setting in the new versions of PHP

Re: [PHP] Help with scripts to add records to a database

2003-11-12 Thread Boyan Nedkov
Rolf Brusletto wrote: Mark wrote: Sorry guys, I have tried all the suggestions so far with no luck. Regards, Mark Mark - After the mysql_query($query); line add the following line echo mysql_error(); run the script and try to add something again, if there is an error, it will tell yo

Re: [PHP] Help with scripts to add records to a database

2003-11-11 Thread zhuravlev alexander
On Tue, Nov 11, 2003 at 07:44:58PM -0800, Mark wrote: > I am following the tutorial at > http://www.freewebmasterhelp.com/tutorials/phpmysql/ > The source code is on the website on the left hand side > http://www.freewebmasterhelp.com/static/tutorials/phpmysql/example.zip > > > My software: > PHP

Re: [PHP] Help with scripts to add records to a database

2003-11-11 Thread Rolf Brusletto
Mark wrote: Sorry guys, I have tried all the suggestions so far with no luck. Regards, Mark try to include field name: $query = "INSERT INTO contacts(first,$last,phone,mobile,fax,email,web) VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web')"; mysql_query($query); __

RE: [PHP] Help with scripts to add records to a database

2003-11-11 Thread Mark
Sorry guys, I have tried all the suggestions so far with no luck. Regards, Mark try to include field name: $query = "INSERT INTO contacts(first,$last,phone,mobile,fax,email,web) VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web')"; mysql_query($query); __

[PHP] Help with scripts to add records to a database

2003-11-11 Thread Mark
I am following the tutorial at http://www.freewebmasterhelp.com/tutorials/phpmysql/ The source code is on the website on the left hand side http://www.freewebmasterhelp.com/static/tutorials/phpmysql/example.zip My software: PHP version 4.3.4 on Windows 2000 MYSQL version 4.0.16 on Windows 2000 Ap