Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
How about just always binding that value as a parameter? So your SQL would look like:
INSERT INTO table (thisdate) VALUES (?) WHERE id =1 Then store either a yyyy-mm-dd date string or the format which calls the function in a variable, say $theDate. Then, always just: $sth->bind_param(1, $theDate); ... and you don't have to worry about whether to quote or not. In reply to Re: DBI quoting when I don't want it to
by JupiterCrash
|
|