in reply to Update Sqlite References
You don't need VALUES in the latter case of UPDATE.
Try something like:
But consider using a placeholder for the WHERE clause also, and pass $ID_read as a bind variable. Edit: I see you found that was the problem, cool!$dbh->do('UPDATE Data SET Tag1=?, Tag2=? WHERE ID=$ID_read', undef, standardize($Tag1), standardize($Tag2) );
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Update Sqlite References
by kennethk (Abbot) on Jan 05, 2017 at 20:24 UTC |