标签: mysql instance
WordPress中的数据库连接实例使用了什么变量?
PS:我想要使用模板中的变量。
答案 0 :(得分:1)
$myrows = $wpdb->get_results( "SELECT id, name FROM mytable" ) Please refer this link
http://codex.wordpress.org/Function_Reference/wpdb_Class