$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>mysql - How to show result of sql query in a page?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

mysql - How to show result of sql query in a page?

matteradmin8PV0评论

I have a table in the same DB that I have a WordPress page and I want to show in the land page the count of total of rows and then I need an another page that show the information of this table , How can I do this?

And I want to be easy to add, for example that I can add the count or the information like presing edit page and in the add section there is something like "Total count" or "Total information". I see in add menú that I have some widgets like "Shortcode", "Categories", "Archives", "Latest comments", "Latest Posts" how can I add a custom widget here?

I have a table in the same DB that I have a WordPress page and I want to show in the land page the count of total of rows and then I need an another page that show the information of this table , How can I do this?

And I want to be easy to add, for example that I can add the count or the information like presing edit page and in the add section there is something like "Total count" or "Total information". I see in add menú that I have some widgets like "Shortcode", "Categories", "Archives", "Latest comments", "Latest Posts" how can I add a custom widget here?

Share Improve this question edited Feb 22, 2019 at 7:58 Patofet asked Feb 22, 2019 at 7:22 PatofetPatofet 12 bronze badges 2
  • 2 Possible duplicate of How to execute SQL SELECT query and see the results? – Jacob Peattie Commented Feb 22, 2019 at 7:25
  • I edit the question to add more information – Patofet Commented Feb 22, 2019 at 7:34
Add a comment  | 

1 Answer 1

Reset to default 0

Solved! I follow this tutorial:

https://wordpress/gutenberg/handbook/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type/

https://wordpress/gutenberg/handbook/designers-developers/developers/tutorials/block-tutorial/creating-dynamic-blocks/

And complimented with this: https://gist.github/mattheu/7cf235b4f932de891bc21cb5f3ff3de6

Post a comment

comment list (0)

  1. No comments so far