can someone explain me wy the folowing query dosn''t work

because i want to select only where the values are 1 , 2 , 3 , 4 and so ond and count these rows

$link = mysql_connect("localhost", "bla", "bla");
            mysql_select_db("db", $link);
            $result = mysql_query("SELECT * FROM narr_turnier_".$onlyconsonants." WHERE startnummer <> '0-1' and startnummer <> '0-2' startnummer <> '0-3' && turnier_jaar='$jaarnu'", $link);
$num_rowszondersterz = mysql_num_rows($resulttacz);

this gives me the folowing error

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in .... on line ...

thanks i advice
John

Thanks if someone reads is i found the solution

    $link = mysql_connect("localhost", "bla", "bla");
            mysql_select_db("db", $link);
            $result = mysql_query("SELECT startnummer FROM narr_turnier_".$onlyconsonants." WHERE startnummer in ('0-1','0-2','0-3','0-4','0-5','0-6','0-7','0-8','0-9','0-10','0-11','0-12' ) && turnier_jaar='$jaarnu'", $link);
$num = mysql_num_rows($resulttacz);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.