in reply to Why does my db query return nothing? (was: IS DBI REALLY THAT USELESS ???)

but when it reaches the point of connecting by the means of DBI it returns a BLANK page (and not a GREEN one)

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.

Replies are listed 'Best First'.
Re: Re: Why does my db query return nothing? (was: IS DBI REALLY THAT USELESS ???)
by Anonymous Monk on May 09, 2002 at 14:13 UTC
    Thank you all - after some nice guys have tested my script on THEIR server, I can say it functions !!! The drag is that my Server (where my Homepage is) didn't have "mysql"-driver installed - so, of course, there is no connection to the corresponding mysql-table. I spent one week into finding it out. Maybe one week more to convince the server of installing the thing... it's just a matter of time, I guess.