PHP
  Home arrow PHP arrow Creating a Searchable Inventory System...
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Mobile Linux 
App Generation ROI 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Creating a Searchable Inventory System: Retrieving and Managing Search Results (continued)
By: Brian Vaughn
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2005-11-29

    Table of Contents:
  • Creating a Searchable Inventory System: Retrieving and Managing Search Results (continued)
  • Automatic Search Listener
  • Explaining the Function
  • Displaying Search Results

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating a Searchable Inventory System: Retrieving and Managing Search Results (continued)


    (Page 1 of 4 )

    In this article, we will set up an automatic search listener to execute the code for our searchable inventory system. With this final piece, we will assemble all of the parts of our application into a working search tool. It will allow us to search for records using any combination of the search forms, as well as sort those records by almost any of the resulting column headers.

    In the previous article, we introduced some important concepts, the most important of which was the “get_search_results” function. This function pieces together all of the static elements of our SQL query (located within the “inc.conf.php” file), and appends all of the dynamic, user-driven portions as well into a complete SELECT statement that allows us to retrieve an organized set of results and return them in the form of an array. This array can then be displayed in any manner we see fit within our “index.php” file.

    All of the logic is now in place to run our search, but we have not yet set up a search listener to execute the code. Let’s take a look at that now.

    More PHP Articles
    More By Brian Vaughn


       · thanks to all you who have read this article! please feel free to share any...
       · Excellent write up again, thanks. Not only will this be useful, but it's educational...
       · wonderfull content and smart progrming ....
       · In the end of the article there is a promise for an article on paginating this...
       · I believe this is what you're looking...
     

       

    PHP ARTICLES

    - Working With Different Namespaces in PHP 5
    - User Management Explained: Overview
    - Using Namespaces in PHP 5
    - Database Security: Guarding Against SQL Inje...
    - Building a Modular Exception Class in PHP 5
    - Database and Password Security for Web Appli...
    - Handling MySQL Data Set Failures in PHP 5
    - Building Site Registration for Web Applicati...
    - Intercepting Customized Exceptions in PHP 5
    - Securing Your Web Application Against Attacks
    - Sub Classing Exceptions in PHP 5
    - Authentication for Web Application Security
    - Building a Content Management System with Co...
    - Filters and Login Systems for Web Applicatio...
    - Working with the Email Class in Code Igniter





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT