Re: Re: [PHP-DB] php-mysql insert via web form problem

2002-02-22 Thread pdsec
Hello, Thanks for your reply. I am not putting the \ slashes in the query, I think php is. However, I am not sure how to remove them from the query that is being sent to mysql. regards ~:P On Fri, 22 Feb 2002 09:58:27 +0200, Marius Ursache [EMAIL PROTECTED] wrote: i think the query you

Re: [PHP-DB] php-mysql insert via web form problem

2002-02-22 Thread Marius Ursache
in your php.ini have something about magic_quotes. read the manual. [EMAIL PROTECTED] a écrit : Hello, Thanks for your reply. I am not putting the \ slashes in the query, I think php is. However, I am not sure how to remove them from the query that is being sent to mysql. regards ~:P

Re: Re: [PHP-DB] php-mysql insert via web form problem

2002-02-22 Thread Jason Wong
On Friday 22 February 2002 16:51, [EMAIL PROTECTED] wrote: Hello, Thanks for your reply. I am not putting the \ slashes in the query, I think php is. However, I am not sure how to remove them from the query that is being sent to mysql. Check out stripslashes(). -- Jason Wong - Gremlins

Re: Re: Re: [PHP-DB] php-mysql insert via web form problem

2002-02-22 Thread pdsec
Ok, stripSlashes did the trick. thanks all. On Fri, 22 Feb 2002 16:59:56 +0800, Jason Wong [EMAIL PROTECTED] wrote: On Friday 22 February 2002 16:51, [EMAIL PROTECTED] wrote: Hello, Thanks for your reply. I am not putting the \ slashes in the query, I think php is. However, I am not sure

[PHP-DB] php-mysql insert via web form problem

2002-02-21 Thread pdsec
Hi, I am trying to write a web based form that I can put arbitrary sql statements into and run them against my mysql db. the form is written using php btw. For read operations this seems to work fine, i.e. select, describe, show etc. However, when I try to do an insert to a table I get an

Re: [PHP-DB] php-mysql insert via web form problem

2002-02-21 Thread Marius Ursache
i think the query you are sending to mysql should be : insert into pages (page) values ('index') (without \) [EMAIL PROTECTED] a écrit : Hi, I am trying to write a web based form that I can put arbitrary sql statements into and run them against my mysql db. the form is written using php