I am using addslashes() on all the parameters receiving on page. And also applying single courts around those variables in mysql query. Here is my code:
$string = addslashes($_POST['string']);
$queryString = " INSERT INTO general (description) VALUES ('$string')";
$query = mysql_query($queryString);
AND
$queryString = "SELECT description FROM general WHERE description = '".$string."'";
$query = mysql_query($queryString);
Is there any chance of SQL INJECTION in this code?