HOME | basics of HTML | basics of PHP | neobux | onbux | readbud | templates |
| ||||
PHP MySQL The Where Clause
PHP MySQL The Where ClauseThe WHERE clause is used to filter records. The WHERE clauseThe WHERE clause is used to extract only those records that fulfill a specified criterion. Syntax
To learn more about SQL, please visit our SQL tutorial. 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. ExampleThe following example selects all rows from the "Persons" table where "FirstName='Peter':
The output of the code above will be:
|
||||
© 2011 d4download.orgfree, All Rights Reserved.
Design created by diljith d4download veriosn 2.0
HOME | basics of HTML | basics of PHP | neobux | onbux | readbud | templates |