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);
In reply to Re: Object Identifier?
by Anonymous Monk
in thread Object Identifier?
by damfer21
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |