MySQL::SQLFix PHP 메소드

SQLFix() 공개 메소드

Also, please note that the SQLUnfix function was removed for compatibility.
public SQLFix ( string $value ) : string
$value string
리턴 string SQL formatted value
    public function SQLFix($value)
    {
        return @mysqli_real_escape_string($this->mysql_link, $value);
    }

Usage Example

예제 #1
0
파일: Mysql.php 프로젝트: kimai/kimai
 /**
  * Save a new secure key for a customer to the database. This key is stored in the clients cookie and used
  * to reauthenticate the customer.
  *
  * @author sl
  * @param $customerId
  * @param $keymai
  */
 public function customer_loginSetKey($customerId, $keymai)
 {
     $p = $this->kga['server_prefix'];
     $query = "UPDATE {$p}customers SET secure='{$keymai}' WHERE customerID='" . $this->conn->SQLFix($customerId) . "';";
     $this->conn->Query($query);
 }
All Usage Examples Of MySQL::SQLFix