Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




esc_sql [ WordPress Function ]

esc_sql ( $sql )
Parameters:
  • (string) $sql Unescaped SQL data
Returns:
  • (string) The cleaned $sql
Defined at:

Soorgelijke functies: esc_js, esc_url, esc_html, is_ssl, esc_html_e


Escapes data for use in a MySQL query

This is just a handy shortcut for $wpdb->escape(), for completeness' sake

Source


<?php
function esc_sql$sql ) {
    global 
$wpdb;
    return 
$wpdb->escape$sql );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics