I replaced the stock hd with a samsung ssd (840) about 18 months ago. It died last week. I tried putting the original HD back in and the computer won't recognize it. Even when I hold down the option key when booting nothing happens. When I remove the disk and connect it via USB it boots up fine as an external hard drive. Any reason why that would be?


Question: How to make login with userid or mobile number using php mysql
Answer: Change this;

$query=mysql_query("select * from users where userId='$uname' and pwd ='$pwd' ");


to: 

$query=mysql_query("SELECT * FROM users WHERE pwd ='$pwd' AND (userId = '$uname' OR PhoneNum = '$uname')");


What this does it will take both $uname value and search both Userid column and Phone Num column for a match. Please note that PhoneNum is the column name in your table. 

Also your database is at risk for attack. MYSQL Injections.