Hey everyone I'm creating a login system for dissertation website. I have used an external php file which contains my php code however when I preview the html file in a browser it displays nothing. Not even any of the form elements.
Any help would be greatly appreciated.
<?php
    include 'core/init.php';
    ?>
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Index</title>
    </head>
    <body>
    <div>
    </div>
    <div>
    <form action='login.php' name="login" method = "POST">
    <table width=>
      <tr>
        <td><label for="Email"></label>
          Email:
          <input type="text" name="email" id="Email">
         </td>
        <td><label for="Password"></label>
          Password:
          <input type="password" name="Password" id="Password">
          </td>
        <td><input type="submit" name="Login" id="Login" value="Login"></td>
      </tr>
    </table>
    <a href="UserRegistration.php">not registered sign up</a>
    </form>
    </div>
    </body>
    </html>
core init file
<?php
session_start();
//error_reporting(0);
require '/database/connect.php';
require '/functions/general.php';
require '/functions/users.php';
$errors = array();
?>
General file
<?php
function sanitize($data) {
    return mysql_real_escape_string($data);
}
?>
User File
}
function user_active ($email) {
    $email = sanitize ($email);
    $query = mysql_query ("SELECT COUNT ('UserID') FROM 'users' WHERE 'Email' = '$email' AND 'activated' = 1");
    return (mysql_result($query, 0) == 1) ? true : false;
}
function user_id_from_email($email){
    $email =sanitize ($email);
    return mysql_result(mysql_query("SELECT 'UserID' FROM 'users WHERE 'Email' = '@$email'"), 0, 'UserID');
}
function login ($email, $password){
 $UserID = UserID_from_username($email);
 $email = sanitize ($email);
 $password = md5 ($password);
 return(mysql_result(mysql_query ("SELECT COUNT ('UserID' FROM 'users' WHERE 'Email' = '$email' AND 'Password' = '$password'"), 0) == 1) ? $UserID : false;
};
?>
Connect File
<?php
$connect_error = 'Sorry, we\'re experiencing connection problems.';
mysql_connect('localhost','root','pass123') or die ($connect_error);
mysql_select_db('bitev2') or die ($connect_error);
?>
 
     
    