should Query01 have a $ in front of it, i assume its a var....

Jason

"Harlequin" <[EMAIL PROTECTED]> wrote: 
> 
> Morning all.
> 
> this is such a basic question I'm embarrassed to ask but the query worked 
> fine a few minutes ago and now returns an error:
> 
> I get an error:
> 
> Parse error: parse error, unexpected '=' in sample.php on line 2
> 
> [CODE]
> // Authenticate User:
>    Query01 = "SELECT * FROM Users
>    WHERE UserID='$_POST[TXT_UserID]'
>    AND UserPassword='$_POST[TXT_UserPassword]'";
>    $Result01 = mysql_query($Query01) or die("Error 01: " . mysql_error());
> [/CODE]
> 
> WTF...?
> 
> -- 
> -----------------------------
>  Michael Mason
>  Arras People
>  www.arraspeople.co.uk
> ----------------------------- 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to