tom123
08-16-2006, 12:44 PM
Hi guys
Is there any quick way of retreiving a value from dbi, if you know you will only have a single value returned i.e. 122
At the moment i do
my $product_ref = $sth->fetchall_arrayref();
foreach my $row (@$product_ref)
{
foreach my $field (@$row)
{
push (@product, $field);
}
}
Thanks in advance
Is there any quick way of retreiving a value from dbi, if you know you will only have a single value returned i.e. 122
At the moment i do
my $product_ref = $sth->fetchall_arrayref();
foreach my $row (@$product_ref)
{
foreach my $field (@$row)
{
push (@product, $field);
}
}
Thanks in advance