in reply to datatype from SQL
The fetch method on a DBI statement handle object returns a reference to an array containing the value, not the value itself (it's an alias for fetchrow_arrayref). You need to do something like:
to get the value in the row.if ($in{'requestID'} == $newUID->[0])
Update
I just realized your code snippet says fetchrow, not fetch. To my knowledge, there's no fetchrow method in DBI. If you're not using DBI, ignore this note (what are you using?); if you are, what method are you actually calling?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: datatype from SQL
by jck (Scribe) on Jun 23, 2006 at 17:36 UTC | |
by VSarkiss (Monsignor) on Jun 23, 2006 at 17:42 UTC | |
by derby (Abbot) on Jun 23, 2006 at 17:45 UTC | |
Re^2: datatype from SQL
by jck (Scribe) on Jun 23, 2006 at 17:29 UTC | |
Re^2: datatype from SQL
by jck (Scribe) on Jun 23, 2006 at 17:32 UTC |