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
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
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
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