How can i use LIKE in this query?
I have a problem with the syntax.
$query="SELECT id,dediche FROM table_dediche WHERE dediche not in (select dedica as dediche from ".$row['nome']."_quotes)";
I have to eliminate sentences from the table using LIKE %%.
        $query="SELECT id,dediche FROM table_dediche WHERE dediche not in (select dedica as dediche from ".$row['nome']."_quotes)";
        $sql = mysql_query($query); //faccio la query
        echo "<select style='width: 515px; margin-bottom:7px;' id='frasi' name='frasi'>";
        while ($res = mysql_fetch_array($sql)){ //prendo il risultato della query
        echo "<option value=\"".$res['dediche']."\">".$res['dediche']."</option>";
        }
        echo "</select>";
    ?>
Thanks in advance.
 
     
     
    