PHP MySQL: Display DataTag: mysql, database, search, data Category: PHP Databasepost: 02 Mar 2008 read: 2,751 php mysql basic step by step tutorial - part 10: In looking for one or more data in the database, you can use syntax such as: SELECT field1,field2,... FROM name_table WHERE condition1,condition2,... ORDER BY name_field If field displayed is all field from the table, so all of the name field itself does not have to be declared but it is enough to change with the sign * then all field will be accessed. ORDER BY parameter shows the data that is organized based on which field you choose. The default sequence is from the smallest one (number sequence), from A-Z (letter sequence), and from the first data to the last data (time sequence). You can reverse these sequence by adding DESC attribute. For example, we will search all of the database data of data_employees and show it based on the name field.
The result:
Then, you can use DESC like
|
| | Give Your Opinion | Recommend |
|

