--- Jake McHenry <[EMAIL PROTECTED]> wrote:
>   $result = mysql_query("SELECT * FROM `users` WHERE `uname` =
> '".$_POST['username']."'");

Don't put uname in single quotes. Aside from that, don't forget that you can
interpolate variables with curly braces. Depending on your personal preference,
you might find it easier to read:

"select * from users where uname = '{$_POST['username']}'"

Hope that helps.

Chris

=====
My Blog
     http://shiflett.org/
HTTP Developer's Handbook
     http://httphandbook.org/
RAMP Training Courses
     http://www.nyphp.org/ramp

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

Reply via email to