Jump to content

hey need some help with '


sinista

Recommended Posts

hey,

 

mysql_real_escape_string() worked perfectly, thanks so much guys,

 

changed

 


$sql = "INSERT INTO `comments` (`comment`, `date`, `user`, `blog_id`) VALUES ('$comment', '$datetime', '$user', '$blog_id')";

$result = mysql_query($sql)

 

to

 

$test = mysql_real_escape_string($comment);

$sql = "INSERT INTO `comments` (`comment`, `date`, `user`, `blog_id`) VALUES ('$test', '$datetime', '$user', '$blog_id')";

$result = mysql_query($sql)

 

thanks again guy :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.