using COUNT with CGI
- From: mmccaws2 <mmccaws@xxxxxxxxxxx>
- Date: 27 Apr 2007 12:49:58 -0700
Hi
any insight would be great.
latest perl with latest mysql on OS X tiger
This works
my $sql = qq{SELECT COUNT(userid),COUNT(password) FROM members};
$sql .= qq{ WHERE userid = '$usrid' AND password = '$pass'};
but this doesn't
my $sql = qq{SELECT COUNT(userid, password) FROM members};
$sql .= qq{ WHERE userid = '$usrid' AND password = '$pass'};
error message for it is
execute failed: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near ' password) FROM members WHERE userid = 'sam' AND password =
'led'' at line 1 at
Alls i'm trying to do is verify an entry.
Thanks
Mike
.
- Follow-Ups:
- Re: using COUNT with CGI
- From: nobull67@xxxxxxxxx
- Re: using COUNT with CGI
- Prev by Date: Re: basename equivalent?
- Next by Date: Re: using COUNT with CGI
- Previous by thread: perl and cygwin perl (unix style paths)
- Next by thread: Re: using COUNT with CGI
- Index(es):
Relevant Pages
|