开发者

WordPress - tap into MySQL connection

开发者 https://www.devze.com 2023-01-30 18:05 出处:网络
What 开发者_Go百科variable is used for the database connection instance in WordPress? PS: I would be wanting to use the variable from the template.$myrows = $wpdb->get_results( \"SELECT id, name F

What 开发者_Go百科variable is used for the database connection instance in WordPress?

PS: I would be wanting to use the variable from the template.


   $myrows = $wpdb->get_results( "SELECT id, name FROM mytable" )

Please refer this link

http://codex.wordpress.org/Function_Reference/wpdb_Class

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号