I don't know what im doing wrong here..
Very simple form is adding slashes to special characters in the db i.e. that\'s entertainment
PHP.ini file: (ver 5.2.17)PHP Code:<?
if(isset($_POST['upload']))
{
include 'dbconnection.php';
$ttitle = mysql_real_escape_string($_POST['ttitle']);
$ttitle2 = mysql_real_escape_string($_POST['ttitle2']);
$query = "INSERT INTO test ( ttitle, ttitle2) ".
"VALUES ('$ttitle', '$ttitle2' )";
mysql_query($query) or die('Error, query failed : ' . mysql_error());
echo "<br>File uploaded<br>";
}
?>
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
..any ideas



Reply With Quote

what should have i done?
Bookmarks