guys i have problems with select not null values from my table
$tabelka = mysql_fetch_array(mysql_query("select * from ".$server_db.".paczka_przedmiot where cos = ".$losuj['test1']."
or cos = ".$losuj['test2']."
or cos = ".$losuj['test3']."
or cos = ".$losuj['test4']."
or cos = ".$losuj['test5']."
or cos = ".$losuj['test6']." order by rand() limit 1"));
$szansa = rand(1,100000);
i arleady try with add and (cos IS NOT NULL) but doesnt work here is my full code
$tabelka = mysql_fetch_array(mysql_query("select * from ".$server_db.".paczka_przedmiot where cos = ".$losuj['test1']."
or cos = ".$losuj['test2']."
or cos = ".$losuj['test3']."
or cos = ".$losuj['test4']."
or cos = ".$losuj['test5']."
or cos = ".$losuj['test6']." and (cos IS NOT NULL) order by rand() limit 1"));
$szansa = rand(1,100000);
cosis NULL. BTW: You can useWHERE cos IN(.., .., ..)instead of multiple OR conditions.