Membership
Main Menu
Forum Boards
Stats
- 20 tutorials
- 74,812 members
- 734,846 forum posts
- 13 blog posts
Tutorials
PHP Basic Database Handling
Views: 67580
Dealing With The Database: SELECT
This is where we actually get the info from the table for us to display to the user. There are no conditions wrapped around it, because we want the information to be displayed every page load. We have this query after the other queries, because we want the updated information in the table to be shown, if the user makes changes.
02. Just a simple select query to get our from the table, except we want to order the information by whatever $order is, be it a user selected order, or the default.
03. Here we execute this query just like all the other query executions so far. The main difference between this one and all the other ones, is that this time we really do want to save the results in a variable, so we can list them.
