> Howdy: Howdy
> > I have a script where I want to > > * connect to database > * create a subroutine where it executes > and returns the value of the SQL > * pass that value to another area > to check and IF statement > * continue with program > > I am having problems trying to figure out > if the SQL is actually being processed > and if so, why the value isn't being returned. do() returns 0E0 on error and number of rows affected as provided by mysql. I think you want selectrow_array() my($joe,$mama) = $dbh->selectrow_array('SELECT joe,mama FROM joemama WHERE ID=83'); HTH DMuey > > [snip script] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]