Hi Everyone,
I'm new to php, although I am an avid programmer with various other web programming lanuages, I think this is a really simple error but I just can't see it, I'm getting the follow error message:
Parse error: parse error, unexpected T_VARIABLE in c:\inetpub\wwwroot\php_new\login.php on line 15
The code that generates that error is the following:
<?php
$db = odbc_connect("users", "", "") or die("Couldn't connect to database.");
$user=addslashes($POST['username']);
$pass=md5($POST['pass']);
//---- test to see if the above methods worked
//---- echo $user; print(" ");
//---- echo $pass;
// Query the database to see if the username is present
$query = "SELECT count(id) FROM users WHERE password=$pass AND username=$user"
$num = odbc_exec($db, $query);
echo $num;
?>
Does anybody have any suggestions on this one??