|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: DBI Substring index query and passing valueby Anonymous Monk |
| on Dec 11, 2012 at 09:29 UTC ( #1008249=note: print w/ replies, xml ) | Need Help?? |
|
And what does your query produce when run straight against the database with an SQL command prompt? How many records are there in the database that begin with '$name'? Does fetchrow_array return false? (If so, your resultset is zero rows.) Also, I'm quite confused by the query. Do you have fields that are named $$$? (Double quotes are meant to quote table and field names in the SQL dialects I'm familiar with.) Perhaps you mean:
May I recommend you put RaiseError into your connection string? Less explicit dying.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||