in reply to Filtering MySQL results
UpdateAh hah, you are using 'group' which is a reserved word for most RDBMs. Are you really sure that is what your table structure looks like?$sth = $dbh->prepare("SELECT username,password,group FROM users WHERE group = 'admin'"); $sth->execute(); while( my ($user,$pass,$group) = $sth->fetchrow_array ) { print "$user,$pass,$group\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re(2): MySQL
by FoxtrotUniform (Prior) on Jul 18, 2002 at 21:45 UTC |