I tried the following code in my college PC and it worked 
well.However the same code shows errors at my home PC(Both the PCs 
have same MySql 5.0 version).when I comment the third line there are 
no errors.Can anyone plz tell me why is it so?

 1. $query="select ename from employee where emailid='$usrname'";
 2. $result=mysql_query($query) or die(mysql_error());
 3. $ename= mysql_result($result, 0);

Reply via email to