D & M Computer Service
 

News

Navigation Hosting Plans Domain Registration Software e-Commerce Hosting Plans Contact D & M Computer Service

PHP/MySQL Tutorials

PHP/MySQL Tutorial
What is PHP?
What is MySQL?
Creating MySQL database/user
Removing MySQL database/user
phpMyAdmin
MySQL Backup/Restore
MySQL Access Host
Connecting PHP and MySQL
Connecting to the Database
Executing Commands on Server
Displaying Table Data
Selecting Individual Records
Zend Optimizer
Pear Modules
Other Tutorials

How to Select Individual Records

As well as showing the whole database, PHP can be used to select individual records, or records which match certain criteria. To do this you must use a variation of the SELECT query. To display the whole table you used the query:

SELECT * FROM tablename

If we just wanted to select ones which have value=1 in the field1-name row you would use the following query:

SELECT * FROM tablename WHERE fiels1-name='1'

As with other MySQL queries, it is almost like plain English text. In the same way you could select records based on any field in the database. You can also select ones with more than one field by adding more:

field='value'

sections onto the query.

For further reference you can visit the official website's of PHP and MySQL.

Other helpful Links



Web Design only Business Marketing Internet Marketing
Web Hosting only Search Engine Optimization Design Site yourself
Web Design & Hosting e-Business Solutions Web Application Development
e-commerce Solution Website Builder FAQ's Tutorials



RJL International Inc.

Here are a few qualifications
our design team has to offer.
Certified International Webmasters

Dreamweaver certified
Joomla Designer
Certified Search Engine Optimization
Certified in Anti Spam protection
Cold Fusion Designers


Discover Card
Visa Card
Master Card

Copyright © 1997 - 2008 D & M Computer Service. All rights reserved RJL International, Inc.

Navigation sitemap Privacy Terms Software Domains D&M Computer Service Hosting