I have created a table 'details'-
FNAME-First name
LNAME-Last name
PHONE- Phone number
BIRTHDAY- Birthday
I have a html file with form,login.html-
<form action="check.php" method="post">
<input type="text" name="phone">
<input type="submit" value="login"></form>
I have php file checking this with mysql database,check.php
<? $PHONE=$_POST['phone']
mysql_connect//My db details here
$query=SELECT FNAME,LNAME FROM 'details' WHERE PHONE='$PHONE' ?>
But the above php code shows error,I think i'm going wrong somewhere, any one can help? Thanks in advance.