The SELECT statement is used to select data from a database. Syntax: SELECT column_name(s) FROM table_name
To get PHP to execute the statement above we must use the mysql_query() function. This function is used to send a query or command to a MySQL connection.