|
Posted by Rik on 06/07/06 00:03
moosus wrote:
> $sql = "SELECT * FROM afta WHERE sessid=$usersession LIMIT 1";
It shouldn't give this partivular error, but what if you try:
$sql = "SELECT * FROM afta WHERE `sessid`='$usersession' LIMIT 1";
(backticks around columng name, single quotes around $usersession, always
good practise).
On a side note, contemplate the types of your database fiels. I suspect a
lot of them that are now 'text' should be something else.
Grtz
--
Rik Wasmus
Navigation:
[Reply to this message]
|