Friday, 15 August 2014

sql - To select the wp-option table from the database -



sql - To select the wp-option table from the database -

i have select table wordpress database. how can select wp-option database table database.

global $wpdb; $wpdb->query( "select * $wpdb->$options" );

but question vague. want achieve?

if getting value option, have api so.

http://codex.wordpress.org/function_reference/get_option

e.g. echo get_option('option_name', 'default_value');

sql wordpress

No comments:

Post a Comment