MySQL::SQLFix PHP Method

SQLFix() public method

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

Usage Example

Example #1
0
 /**
  * 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