When I try to insert a sentence with an apostrophe or line break to the database I get an error.
this is the code for inserting into the database.
What can I do to solve this problem?
Thanks all.
PHP:
{
$sql_query = "INSERT INTO `filedetails` (`type`,`title` , `description` , `links` )
VALUES ('$chosenFileType','$title','$description','$linksCollection')";
$query_result = mysql_query($sql_query) or die(mysql_error());
}
this is the code for inserting into the database.
What can I do to solve this problem?
Thanks all.





