Jump to content

abdelrahman_mohamed

New Members
  • Posts

    1
  • Joined

  • Last visited

abdelrahman_mohamed's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. iam using php an xampp to make login form but there is a problem when itry to log in i get this : Parse error: syntax error, unexpected '$result' (T_VARIABLE) in C:\xampp\htdocs\test\login1.php on line 6 here is my php code <?php if($_SERVER['REQUAST_METHOD']=='POST'){ include 'connect.php'; $sql="SELECT * FROM `users` where email='$email' and password='$password';" $result=mysqli_query($sql); if($result){ $num=mysqli_num_rows($con,$result); if($num>0){ echo "login successful"; }else{ echo "invaild"; } } } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.