Web development lesson 48 php mysql select query example part 1



Published
#pashto #queriessolved
MySQL SELECT Query in PHP
You'll discover how to use PHP to pick records from a MySQL table in this lesson.

Making Data Selections From Database Tables
You have so far learned how to construct a database, a table, and insert data. It is now time to recover the data that was entered during the last instruction. The records from database tables are chosen using the SQL SELECT statement. The fundamental syntax is as follows:

SELECT column1_name, column2_name, columnN_name FROM table_name;
This SQL query will be executed by sending it to the PHP mysqli query() function.

Consider the following records from our individuals database table:

+——+——————+—————-+———————————+
: | id | first name | last name | email |
+——+——————+—————-+———————————+

PHP is used in
Category
Web design
Be the first to comment