You are here: Re: Php mysql - messing with my head « All PHP « IT news, forums, messages
Re: Php mysql - messing with my head

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация