i am new to php and trying to make login form, but its showing an error
Failed to query databaseYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'form signup-form where email = 'mail@mail.com' AND psw = '12345'' at line 1
 <?php
    $con = mysql_connect("localhost" , "root" , "");
    $db = mysql_select_db("jobportal" , $con);
    if(!$db)
      {         
        echo mysql_error();
      }
    if(isset($_POST['login']))
      {
        $email = $_POST['email'];
        $psw = $_POST['psw'];
        $query = mysql_query("select * form signup-form where email = '$email' 
          AND   psw = '$psw'") or die ("Failed to query database".mysql_error());
        $row = mysql_fetch_array($query);
        if($email=="$email" && $psw=="$psw")
        header('location:index.php');                  
       }
  ?>
 
    