Ok here is my code for the authenticate page.
When l log in it comes on blank.
<?php
if(isset($_POST['log']))
{
$username = $_POST['username'];
$pass = $_POST['passd'];
include("connectOrder.php");
$sql = "SELECT * FROM users WHERE user_name='$username' AND password = '$pass' AND access_level != 0";
mysql_query($sql);
$num=mysql_num_rows($sql);
if($num == 1)
{
session_start();
$_SESSION["user_id"]=$row_sqllog["user_id"];
$_SESSION["username"]=$row_sqllog["user_name"];
header ("Location: order.php");
}
[else]
{
header ("Location: login.php?login=wrong");
}
}
?>