esc_sql

Definition:
function esc_sql( $sql ) {}

Escapes data for use in a MySQL query
This is just a handy shortcut for $wpdb->escape(), for completeness’ sake

Parameters

  • string $sql: Unescaped SQL data

Return values

returns:The cleaned $sql

Source code

function esc_sql( $sql ) {

	global $wpdb;

	return $wpdb->escape( $sql );

}

1038

About these ads

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 508 other followers

%d bloggers like this: