A web server programming language.
The SELECT statement is used to select data from one or more tables.
SELECT
We use the query() method to execute the SQL query, and fetch the results using a while loop with fetch_assoc().
query()
while
fetch_assoc()
Edit the code below and click Run to see the result live.