$t1 = isset($_GET["t1"])?$_GET["t1"]:1; // need to be securised for injonction$t2 = isset($_GET["t2"])?$_GET["t2"]:2; // need to be securised for injonction$t3 = isset($_GET["t3"])?$_GET["t3"]:3; // need to be securised for injonction

$ret = $db->query("SELECT * FROM table_test WHERE t1=? AND t2=? AND t3=?",$t1,$t2,$t3);//$ret = $db->insecureQuery("SELECT * FROM table_test WHERE t1=".$db->quote($t1));