Hello.
I have lines in the database, some have the number 2, how can I print all the lines except the one with this number. I tried NOT like '% 2%', it does not work ... Or maybe you can just exclude this figure in the PHP script when outputting? Help please, I’m already exhausted, I’m suffering for 2 hours, trying to get something out without this figure.
$avs = mysql_query("select * from fr where idus='1'"); while ($av = mysql_fetch_array($avs)) { $trs = mysql_query("select * from us where id='$av[id]'"); while ($tr = mysql_fetch_array($trs) { echo $tr[id]; } } Here from us it is necessary to display all id, except id 2
id?char,Int? ifint, thennot cast(id as char) like '%2%'tochar:not cast(id as char) like '%2%'- Sergeyselect * from us where id='$av[id]' not like '%2%'But this is an obvious nonsense. The script is completely possible for a fee - Sergey