Possible Duplicate:
Best way to stop SQL Injection in PHP
I have a question concerning the security of website. Actually I have used the queries as:
$name = $_POST['name'];
$sql = "INSERT INTO table (sno, name) VALUES('', '$name')";
mysql_query($sql);
Does this kind of coding assures the security from sql injection or others. If not what methods could we use to make our website secured?
Thanks in advance.