merci à tous. jai trouvé la solution à mon problème: au lieu de

if (mysql_num_rows($result >0 )){
$data = mysql_fecth_assoc($result) ;

je devais ecrire
if (mysql_num_rows($result) >0 ){
$data = mysql_fecth_assoc($result) ;

a present il y'a un autre problème:

Fatal error: Call to undefined function: mysql_fecth_assoc() in c:\program files\easyphp1-7\www\assistancesite\login.php on line 38