Home >Backend Development >PHP Problem >How to query data with php mysql?
php How to query data with mysql?
Method steps:
1. Open the php editor sublime, create a new file, and write the comment content.
2. Create a new function chaxun
3. Connect to the database and fill in the database Username, password, hostname, and database to use.
4. Fill in the query sql statement: select * from test1
php tutorial"
The above is the detailed content of How to query data with php mysql?. For more information, please follow other related articles on the PHP Chinese website!