Whenever I try to view the site I get an error message. Here is the code:
<?php
 $server = '127.0.0.1';
 $username = 'root';
 $db_name = 'auth';
try{
  $conn = new PDO("mysql:host=$server;dbname=$database;", $username);}
  catch(PDOException $e){
  die( "Connection failed: " . $e->getMessage());
   }
if(!empty($_POST['email']) && !empty($_POST['password'])):
  // enter the new user in the database
  $sql = "INSERT INTO users (email, passowrd) VALUES (;email, :password);
  $stmt = $conn->prepare($sql);
  $stmt->bindParam':email'],_POST['email'];
  $stmt->bindParam((':password',password_hash(POST['password'], PASSWORD_BCRYPT));
  if( $stmt->execute() ):
   die('Success');
  endif;
 endif;
   ?>
I cannot figure out why it is saying that the end bracket for the php code is unexpected.
 
     
    