0

The project I am working on is using mysql not mysqli. The database class code where the " where query executes is"

if($this->whereCondition != "") {
    $this->sql .= " WHERE $this->whereCondition";
}

if($this->headers != "") {
    $this->sql .= "  $this->headers";
}

$this->whereCondition contains all the conditions of where statement. Can I use mysql escape string to the whole variable or should I escape individual condition values ??

Anish Joseph
  • 1,026
  • 3
  • 10
  • 24

0 Answers0