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:

Benzer Fonksiyonlar: 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 ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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