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
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
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
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);
__
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);
__
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
6 matches
Mail list logo