in reply to Object Identifier?
Because $campaign_id comes from the user it is very dangerous to use in a database query unless it is properly handled and placeholders (the ? thingy) does that for you.OLD: $sql = "select list_id from campaign_list where campaign_id = $campaig +n_id"; NEW: $sql = "select list_id from campaign_list where campaign_id = ?"; OLD: $sth->execute(); NEW: $sth->execute($campaign_id);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Object Identifier?
by damfer21 (Novice) on Oct 22, 2018 at 22:01 UTC | |
by Anonymous Monk on Oct 22, 2018 at 23:45 UTC | |
by damfer21 (Novice) on Oct 23, 2018 at 00:35 UTC |