> $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
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
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
"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
4 matches
Mail list logo