in reply to Using SQL Placeholders correctly
You will want to use double quotes around anything that contains variables, and lose any quotes around the simple scalar values, you don't need any quotes there!
$sth_m->execute('?', "$year-$mon-$mday", $INPUT{'user'}, $INPUT{'ref'} +, $INPUT{'username'}, 'notread', $memo_final);
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using SQL Placeholders correctly
by pg (Canon) on Dec 21, 2003 at 23:29 UTC |