I solved the problem by turning off magic_quotes_gpc in my php.ini file.
> I was under the impression that using prepared statements means you don't
> need to use those functions.
>
>> check into stripslashes ,addslashes and mysqli_real_escape_string
>> functions.
>>
>> Jack
>>
>> 2009/7/17 Jason
I was under the impression that using prepared statements means you don't
need to use those functions.
> check into stripslashes ,addslashes and mysqli_real_escape_string
> functions.
>
> Jack
>
> 2009/7/17 Jason Carson
>
>> > Hello everyone,
>> >
>> > I have a problem. When I insert > href="htt
check into stripslashes ,addslashes and mysqli_real_escape_string functions.
Jack
2009/7/17 Jason Carson
> > Hello everyone,
> >
> > I have a problem. When I insert http://example.com>Example
> > into my database with the following code...
> >
> > $connect = mysqli_connect($hostname, $username
> Hello everyone,
>
> I have a problem. When I insert http://example.com>Example
> into my database with the following code...
>
> $connect = mysqli_connect($hostname, $username, $password, $database);
> $sql="INSERT INTO notes VALUES ('$id', '$note')";
> $result=mysqli_query($connect, $sql);
>
> .
Hello everyone,
I have a problem. When I insert http://example.com>Example
into my database with the following code...
$connect = mysqli_connect($hostname, $username, $password, $database);
$sql="INSERT INTO notes VALUES ('$id', '$note')";
$result=mysqli_query($connect, $sql);
...everything work