db_encode_blob($data)
drupal/includes/database.mysqli.inc, line 314
Returns a properly formatted Binary Large Object value.
$data Data to encode.
Encoded data.
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
function db_encode_blob($data) {
global $active_db;
return "'" . mysqli_real_escape_string($active_db, $data) . "'";
}