php login code error

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
nitsmooth
Forum Newbie
Posts: 13
Joined: Thu May 22, 2008 6:50 am

php login code error

Post by nitsmooth »

Whats the error ?

$login = mysql_query("select * from student_login where (username = '" . $_POST['username'] . “‘) and (password = ‘” . md5($_POST['password']) . “‘)”,$db);
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: php login code error

Post by Christopher »

What's the error message?
(#10850)
User avatar
prometheuzz
Forum Regular
Posts: 779
Joined: Fri Apr 04, 2008 5:51 am

Re: php login code error

Post by prometheuzz »

arborint, since you are a moderator in this forum, perhaps you could move it to a more appropriate section, because this question has little to do with regex.

Cheers,

Bart.
Post Reply