[Discuss] mysql problem
Bill Ricker
bill.n1vux at gmail.com
Mon Aug 22 19:43:03 EDT 2016
On Mon, Aug 22, 2016 at 4:31 PM, dan moylan <jdm at moylan.us> wrote:
> > Can't call method "prepare" on an undefined value at
> > /home/moylan/ulmmoy/prl/sub/USR/USR.pm line 777.
>
The problem occurs several possibly many lines earlier.
Wherever $dh0 is initialized, it should be checked for
! defined $dh0
and if so, the error text from the failed statement should be logged and
the world stopped.
I'm glad to see you're using prepared statements ... because no one wants
to play with Bobby Tables
bobby-tables.com: A guide to preventing SQL injection
> Who is Bobby Tables? From the webcomic xkcd.
> School: Hi, this is your son's school. We're having some computer trouble.
> Mom: Oh, dear -- Did he break something?
>
--
Bill Ricker
bill.n1vux at gmail.com
https://www.linkedin.com/in/n1vux
More information about the Discuss
mailing list