Linux Today: Linux News On Internet Time.
Search Linux Today
search.internet.com
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Become a Marketplace Partner

internet.commerce
Be a Commerce Partner














The Linux Channel at internet.com
Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Subscribe News
Subscribe PR
Subscribe Security

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

Saving the "Best" for Last - Fedora 12 (Constantine)

LinuxCertified Announces its next Linux System and Network Administration BootCamp

The Problem With The Linux Community

Vim 101: A Beginner's Guide to Vim

Open Source Science: A Revolution From Within

openSUSE 11.2-- Incremental Updates, Plenty of Polish

Microsoft, other rivals slam Google Chrome OS

Intel Linux Graphics Shine With Fedora 12

Editor's Note: Do It Yourself "Cloud"

Google Chrome OS: First looks, first impressions




Arcsight Engineer
The Computer Merchant, Ltd
US-DC-Washington

Justtechjobs.com Post A Job | Post A Resume
:Accessing Your MySQL Database from the Web with PHP
Accessing Your MySQL Database from the Web with PHP
Nov 26, 2008, 01 :33 UTC (0 Talkback[s]) (3140 reads)

(Other stories by Luke Welling, Laura Thomson)

"In Chapter 8, "Designing Your Web Database, "we outlined how web database architectures work. Just to remind you, here are the steps:

  1. A user's web browser issues an HTTP request for a particular web page. For example, the user might have requested a search for all the books written by Michael Morgan at Book-O-Rama, using an HTML form. The search results page is called results.php.
  2. The web server receives the request for results.php, retrieves the file, and passes it to the PHP engine for processing.
  3. The PHP engine begins parsing the script. Inside the script is a command to connect to the database and execute a query (perform the search for books). PHP opens a connection to the MySQL server and sends on the appropriate query.
  4. The MySQL server receives the database query, processes it, and sends the results-a list of books-back to the PHP engine.
  5. The PHP engine finishes running the script. This usually involves formatting the query results nicely in HTML. It then returns the resulting HTML to the web server. The web server passes the HTML back to the browser, where the user can see the list of books she requested.
"Now you have an existing MySQL database, so you can write the PHP code to perform the preceding steps.Begin with the search form. The code for this plain HTML form is shown in Listing 11.1."

Complete Story

Related Stories:
Administering RBAC in PHP 5 CMS Framework(Nov 18, 2008)
How to Understand Color Codes(Nov 05, 2008)
PHP 5 CMS Framework Development: Access Control(Nov 03, 2008)
How to Create an Ajax Autocomplete Text Field: Part 1(Aug 17, 2008)
How to Create a Search Feature with PHP and MySQL(Aug 12, 2008)
Is the Sacred Cow of Web Standards Headed for the Slaughterhouse?(Dec 19, 2007)



No talkbacks posted.
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!






..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs