$sql="SELECT * FROM tb_score,tb_std WHERE tb_std.class1 <7 AND tb_std.id = tb_score.idstd";
//$sql="select * from tb_score INNER JOIN tb_std ON (tb_score.idstd = tb_std.id) where class1 =6 ";
$result=mysql_db_query($dbname,$sql);
$number=mysql_num_rows($result);