It really, really helps to check for errors on connect(). Go and do that, then report back. You might have a MySQL permission problem (such as the anonymous user not having privs to connect).
And you probably want to move the $dbh->disconnect into get_price.
In reply to Re: Why does my db query return nothing? (was: IS DBI REALLY THAT USELESS ???)
by dws
in thread Why does my db query return nothing? (was: IS DBI REALLY THAT USELESS ???)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |