Re: [PHP-DB] MySQLand a prepared statement problem

2009-07-16 Thread Jason Carson
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

Re: [PHP-DB] MySQLand a prepared statement problem

2009-07-16 Thread Jason Carson
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

Re: [PHP-DB] MySQLand a prepared statement problem

2009-07-16 Thread Jack van Zanen
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

Re: [PHP-DB] MySQLand a prepared statement problem

2009-07-16 Thread 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, $password, $database); > $sql="INSERT INTO notes VALUES ('$id', '$note')"; > $result=mysqli_query($connect, $sql); > > .

[PHP-DB] MySQLand a prepared statement problem

2009-07-16 Thread 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, $password, $database); $sql="INSERT INTO notes VALUES ('$id', '$note')"; $result=mysqli_query($connect, $sql); ...everything work