Hello folks,
I'm getting the error message "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/login.php on line 9". I've been at it for hours and my eyes are starting to bleed, I would greatly appreciate a code-weary traveller could spot my mistake. Here's the first 10 lines of my page. The inconspicuous.inc file just defines $host, $password etc.
<?php
session_start();
include("inconspicuous.inc");
switch (@$_POST['do'])
{
case "login":
$connect=mysql_connect($host, $user, $password, $database) or die("Couldn't connect to server.");
$sql="SELECT loginID FROM member WHERE loginID='$_POST[fusername]'";
$result=mysql_query($connect, $sql) or die(mysql_error() "Query FAIL.");
$num=mysql_num_rows($result);
Thanks in advance,
Darren.