Home >PHP Framework >ThinkPHP >How to query all data in thinkphp5

How to query all data in thinkphp5

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-23 12:00:035934browse

How to query all data in thinkphp5

The first step is to load the project.

How to query all data in thinkphp5

The second step is to create a new method hello5_2.

How to query all data in thinkphp5

Related recommendations: "ThinkPHP Tutorial"

The third step is to make a comment.

How to query all data in thinkphp5

The fourth step is to write the query statement of tp5.

How to query all data in thinkphp5

#The fifth step is to write the sql query data table statement in the query statement.

How to query all data in thinkphp5

The sixth step is to print out the query results.

How to query all data in thinkphp5

The seventh step is to test on the browser.

How to query all data in thinkphp5

The above is the detailed content of How to query all data in thinkphp5. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn