开发者 | 1manfactory |
---|---|
更新时间 | 2017年5月15日 22:31 |
捐献地址: | 去捐款 |
PHP版本: | 2.7 及以上 |
WordPress版本: | 4.1 |
/wp-content/plugins/
folderUse SQL statements with #user_login# to be replaced by user login on the fly Eg. SELECT * FROM wp_users WHERE user_login='#user_login#;' Will only give one line whith the result of the current user login, where SELECT * FROM wp_users; will give you all lines
[dsscode no=x title="My Title" width="100%" height="400" pagesize="50"] x is the number of your SQL statement title is the title width, use percent values oder just figures which will be treated as picxel, leave empty for full width of 100% height="400", same as above pagesize="50": The number of rows in each page (only with charttype table)
Yes, but you have the grant your user access (better only select rights) to the database. Than you can use "SELECT * FROM database.table;" as you are used to. Be careful this might cause security risks.
Post a comment on Display SQL Stats
Check out my other Wordpress Plugins
Post it at the plugin page: Display SQL Stats