$sql = mysql_query("select count(*) from progs where name='editoradi'");
$data = mysql_fetch_array($sql);
echo $data[0];