Possible Duplicate:
How to prevent SQL injection in PHP?
I'm newer in sql and I would like to learn about SQL Injection. For example, I have a simple sql query like using POST (php):
    $valuedata = $_POST['name1'];
    $dbase->query("SELECT * FROM tabledata WHERE value LIKE '%$valuedata%'");
How to protect this query of SQL Injection?
 
    