The error message that you are saying happened : Can't call method "bind_param" on an undefined value will only occur, to the best of my knowledge, when the prepare fails, and does not return a statement handle.
The other possibility is that the statement handle has gone out of scope. Did you declare the scope of the statement handle before you entered the eval block? (this is one of those things that 'use strict' is rather good at catching)
update:: paragraph 1 conflicted w/ paragraph 2
|