[PHP] Re: Usng Session Vaiable in WHERE Statement

2004-07-27 Thread Sheawh
> $MembersDataQry = "SELECT * FROM MembersData > WHERE UserID=' ".$_SESSION['logname']." ' "; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Usng Session Vaiable in WHERE Statement

2004-07-26 Thread Daniel Guerrier
Don't argue with machines, just give it what it wants. Just put the session variable in it's own variable and pass that to the sql statement. $logon = $_SESSION['logname']; $MembersDataQry = "SELECT * FROM MembersData WHERE UserID='$logon'"; --- Daniel Kullik <[EMAIL PROTECTED]> wrote: > Hello

[PHP] Re: Usng Session Vaiable in WHERE Statement

2004-07-26 Thread Daniel Kullik
Hello again, Michael! You ought to read this: http://de.php.net/manual/en/language.types.string.php#language.types.string.parsing Daniel Harlequin wrote: Could someone please help me with my syntax here...? $MembersDataQry = "SELECT * FROM MembersData WHERE UserID='$_SESSION['logname']'"; I get an

[PHP] Re: Usng Session Vaiable in WHERE Statement

2004-07-26 Thread Torsten Roehr
"Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Could someone please help me with my syntax here...? > > $MembersDataQry = "SELECT * FROM MembersData > WHERE UserID='$_SESSION['logname']'"; > > I get an error on line 2 but can't seem to figure out what I've missed. > > The