19.09.2011, 19:42
PHP код:
$result = mysql_query("SELECT * FROM users") or die(mysql_error()); // Getting all information (*) from the table users.
PHP код:
$query = "SELECT ID, COUNT(ID) FROM users "; // Seems clear, we are getting the amount of ID's and we are getting it FROM the table users.
What you should do is the following
- Discuss what the CREATE TABLE query does.
- Discuss what echo actually does
- Discuss what the row variable actually does and how to access other information using it.