Re: [PHP-WIN] quotes in mysql

2004-04-03 Thread Luiz Miguel Axcar
Hello, > insert into table_name (describe) values('" . $check . "') I think it work: $data = addslashes ($_POST ['data']) //adding slashes before special chars // take a look on manual to get info about get_magic_quotes_gpc () to do not add slashes in a string with slashes $query = "INSERT INTO

Re: [PHP-WIN] quotes in mysql

2004-04-02 Thread Ignatius Reilly
h'" <[EMAIL PROTECTED]>; "'Php-windows mailing list'" <[EMAIL PROTECTED]> Sent: Friday, April 02, 2004 3:22 PM Subject: RE: [PHP-WIN] quotes in mysql You can use addslashes .. which would be $check = addslashes($check); Then when you extract the inform

RE: [PHP-WIN] quotes in mysql

2004-04-02 Thread Tony Devlin
You can use addslashes .. which would be $check = addslashes($check); Then when you extract the information from the database to be displayed you want to you would need to stripslashes as such $check = stripslashes($check); It's typically a good idea to always add/strip slash

RE: [PHP-WIN] quotes in mysql

2004-04-02 Thread Svensson, B.A.T. (HKG)
Why does the wheel need to be reinvented every second month? The solution to this "problem" is to escape all funny characters. Particular when it comes to quotes, the traditional solution for this during the last 40 years has been to quote the quote. Or use double quotes to quote singe quotes, or