as per
PHP: mysql_query - Manual
For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, mysql_query() returns a resource on success, or FALSE on error.
Quote:
For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, mysql_query() returns TRUE on success or FALSE on error.
The returned result resource should be passed to mysql_fetch_array(), and other functions for dealing with result tables, to access the returned data.
|
$result is a variable that refers to whatever is returned by the call to the database object.
you'd iterate through the result to retrieve all the values (rows) of say a select.
usually that takes the form or
PHP Code:
while ($row=mysql_fetch_array($sqlr))
{ //do somethign with the row retrieved from the db
// eg echo $row['columnname'];
}