in reply to Re: DBI variable argument count
in thread DBI variable argument count
Do I need to reformat the select statement? It simply won't give me an error/warning, and my $sth->fetchrow_hashref() doesn't give me any data to play with. :( There is a row in my db with appropriate data:SQL = "SELECT * FROM dbname WHERE unit = ? AND name1 REGEXP ? AND emai +l REGEXP ? ORDER BY unit" execute( 001, duckman, john@google.com )
mysql> select unit, name1, email from dbname; +------+--------------------+---------------------+ | unit | name1 | email | +------+--------------------+---------------------+ | 001 | duckman industries | poorjohn@google.com | +------+--------------------+---------------------+ 1 row in set (0.00 sec)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBI variable argument count
by roboticus (Chancellor) on Sep 15, 2012 at 14:53 UTC | |
|
Re^3: DBI variable argument count
by anothersmurf (Novice) on Sep 14, 2012 at 16:11 UTC | |
by brap (Pilgrim) on Sep 14, 2012 at 17:08 UTC | |
by anothersmurf (Novice) on Sep 15, 2012 at 02:06 UTC | |
by anothersmurf (Novice) on Sep 14, 2012 at 21:53 UTC | |
by CountZero (Bishop) on Sep 15, 2012 at 17:32 UTC |