I Love PHPMaker

... because it gets even more powerful and flexible!!

  • About
  • Terms and Conditions
  • Membership Options
  • Sitemap
  • Downloads
    • PHPMaker Extensions Download
    • PHPMaker Projects Download
    • PHP Report Maker Extensions Download
I Love PHPMaker » Tips and Trick » Smart Search in PHPMaker
How to Hide “Add” Link in Websites that Generated by PHPMaker 9.1.0
How to Prevent Users Displaying All Records in List Pages of Websites that Generated by PHPMaker 9.0.4

December 30, 2012

Smart Search in PHPMaker

As we have already known, PHPMaker has the ability to generate the List page which is including the Search Panel in order to search the certain records based on the certain keyword(s). However, not many people know that the web applications that generated by PHPMaker has a powerfull Quick Search feature.

If you generate your List page that includes the Quick Search, then you will see there are three options which are represented by three radio button controls in the Search Panel. They are: Exact phrase, All words, and Any word.

The questions are:

  1. Did you know what is the difference among those three options?
  2. Have you tried it and distinguish the powerful of those three options?

To answer those questions, I will explain you in more detail by giving some usage examples. You will know what is the differences between one and another from their result pages. So I hope you will be able to tell your web application users how to optimize this Quick Search by using those three options.

  1. Exact phrase

    As the default, by using this option, you will be able to search the records that contain the keyword that match with the exact phrase you enter in the search textbox, either exact as the partial keyword or exact as the whole keyword in the certain field(s). Since this is the simplest method and often being used for search method, PHPMaker uses it as the default option.

    For example, please follow this steps:
    1. Visit this page: http://kodepos.posindonesia.co.id/kodeposalamatindonesialist.php?language=en
    2. Choose Daerah Khusus Ibukota Jakarta from Province directive.
    3. Make sure the Exact phrase has been chosen.
    4. Enter the keyword: sudirman in the search textbox.
    5. Press Search (*) button.
    6. You will see the result page will return you the records which contain that exact phrase of keyword, either partial or the whole keyword in the certain field. Please see the Main Address column.

    Record Number Address Prefix Main Address Village Subdistrict Regency/City Province Postcode Group Postcode
    1 Jln. Jalan Sudirman, Jendral Bendungan Hilir Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10210
    2 Jln. Jalan Sudirman, Jendral Karet Tengsin Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10220
    3 Jln. Jalan Sudirman, Jendral Gelora Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10270
    4 Jln. Jalan Sudirman, Jendral Senayan Kel. Kebayoran Baru Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12190
    5 Jln. Jalan Sudirman, Jendral Karet Semanggi Kel. Setiabudi Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12930
    6 Gg. Gang Sudirman Kebon Manggis Kel. Matraman Jakarta Timur Kota Daerah Khusus Ibukota Jakarta JAKARTA 13150
    7 Gg. Gang Sudirman Cawang Kel. Kramatjati Jakarta Timur Kota Daerah Khusus Ibukota Jakarta JAKARTA 13630
  2. All words

    By using this option, you will get the records that contain all words in the certain field. This option is useful if you want to narrow the search result must be contain all words that you entered in the search textbox. Each keyword must be separated by space character.

    For example, please follow this steps:
    1. Visit this page: http://kodepos.posindonesia.co.id/kodeposalamatindonesialist.php?language=en
    2. Choose Daerah Khusus Ibukota Jakarta from Province directive.
    3. Make sure the All words has been chosen.
    4. Enter the keyword: jendral sudirman in the search textbox.
    5. Press Search (*) button.
    6. You will see the result page will return you only the records which contain that keyword, either partial or the whole keyword in the certain field. Please see the Main Address column.

    Record Number Address Prefix Main Address Village Subdistrict Regency/City Province Postcode Group Postcode
    1 Jln. Jalan Sudirman, Jendral Bendungan Hilir Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10210
    2 Jln. Jalan Sudirman, Jendral Karet Tengsin Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10220
    3 Jln. Jalan Sudirman, Jendral Gelora Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10270
    4 Jln. Jalan Sudirman, Jendral Senayan Kel. Kebayoran Baru Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12190
    5 Jln. Jalan Sudirman, Jendral Karet Semanggi Kel. Setiabudi Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12930

    7. From the result in the second option above, you will see that the result page will return you only five records that contain jendral and sudirman keywords in the certain fields, regardless the order of the keywords. As you can see, we enter jendral sudirman in the search textbox, but we get the result which contain Sudirman, Jendral in the certain field.
    8. You can compare this result in the second option with the result if you are choosing the first option above.
    9. Please note that if you are using the same keyword in this option for the first option (Exact phrase) above, then you will get no result.

  3. Any word

    By using this option, you will get the resulst wider, since you should enter as many keywords as you want, regardless whether the keywords are located in the same record or the separated records. Each keyword must be separated by space character. This option is useful if you want to display the records that contain any word you enter in the search textbox. Especially, you want to display as many records based on the many keywords from you.

    1. Visit this page: http://kodepos.posindonesia.co.id/kodeposalamatindonesialist.php?language=en
    2. Choose Daerah Khusus Ibukota Jakarta from Province directive.
    3. Make sure the Any word has been chosen.
    4. Enter the keyword: sudirman subroto in the search textbox.
    5. Press Search (*) button.
    6. You will see the result page will return you all the records which contain that keyword. Please see the Main Address column.

    Record Number Address Prefix Main Address Village Subdistrict Regency/City Province Postcode Group Postcode
    1 Jln. Jalan Sudirman, Jendral Bendungan Hilir Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10210
    2 Jln. Jalan Sudirman, Jendral Karet Tengsin Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10220
    3 Jln. Jalan Gatot Subroto, Jendral, Gedung -, Sari Lebah Tirta Hijau Petamburan Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10260
    4 Jln. Jalan Gatot Subroto, Jendral, Gedung BNI 46 Petamburan Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10260
    5 Jln. Jalan Gatot Subroto, Jendral, Gedung BPK Petamburan Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10260
    6 Jln. Jalan Gatot Subroto, Jendral, Prabu Motor Petamburan Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10260
    7 Jln. Jalan Gatot Subroto, Jendral, Wisma Lumba-lumba Petamburan Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10260
    8 Jln. Jalan Gatot Subroto, Jendral, Balai Sidang Gelora Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10270
    9 Jln. Jalan Gatot Subroto, Jendral, Gedung Kehutanan Gelora Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10270
    10 Jln. Jalan Gatot Subroto, Jendral, Gedung MPR - DPR Gelora Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10270
    11 Jln. Jalan Gatot Subroto, Jendral, Kel. Gelora Gelora Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10270
    12 Jln. Jalan Gatot Subroto, Jendral, Manggala Wana Bhakti Gelora Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10270
    13 Jln. Jalan Gatot Subroto, Jendral, Taman Ria Remaja Gelora Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10270
    14 Jln. Jalan Sudirman, Jendral Gelora Kel. Tanah Abang Jakarta Pusat Kota Daerah Khusus Ibukota Jakarta JAKARTA 10270
    15 Jln. Jalan Gatot Subroto, Jendral Senayan Kel. Kebayoran Baru Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12190
    16 Jln. Jalan Sudirman, Jendral Senayan Kel. Kebayoran Baru Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12190
    17 Jln. Jalan Gatot Subroto, Jendral Kuningan Barat Kel. Mampang Prapatan Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12710
    18 Jln. Jalan Gatot Subroto, Jendral Pancoran Kel. Pancoran Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12780
    19 Jln. Jalan Gatot Subroto, Jendral, Mess BDN - Mampang Prapatan Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12790
    20 Jln. Jalan Gatot Subroto, Jendral Menteng Dalam Kel. Tebet Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12870
    21 Jln. Jalan Gatot Subroto, Jendral Karet Semanggi Kel. Setiabudi Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12930
    22 Jln. Jalan Sudirman, Jendral Karet Semanggi Kel. Setiabudi Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12930
    23 Jln. Jalan Gatot Subroto, Jendral Kuningan Timur Kel. Setiabudi Jakarta Selatan Kota Daerah Khusus Ibukota Jakarta JAKARTA 12950
    24 Gg. Gang Sudirman Kebon Manggis Kel. Matraman Jakarta Timur Kota Daerah Khusus Ibukota Jakarta JAKARTA 13150
    25 Gg. Gang Sudirman Cawang Kel. Kramatjati Jakarta Timur Kota Daerah Khusus Ibukota Jakarta JAKARTA 13630

    7. "Any word" option is useful if you obviously want to search for some records based on the multiple search keywords.

  4. In Conclusion

    As you can see from the three example above, now you have known the different result between the first, second, and third option of Quick Search. PHPMaker has provided the options so that you can optimize it based on your various needs.

Article by Masino Sinaga / Tips and Trick / All words, Any word, Exact phrase, Quick Search, search, Search Panel Leave a Comment

How to Hide “Add” Link in Websites that Generated by PHPMaker 9.1.0
How to Prevent Users Displaying All Records in List Pages of Websites that Generated by PHPMaker 9.0.4

Leave a Reply Cancel reply

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • A New PHPMaker 2025 Project File Is Released
  • PHPMaker 2025 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2025 Is Released!
  • A New PHPMaker 2024 Project File Is Released
  • PHPMaker 2024 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2024 Is Released!
  • PHPMakerProjects.com, For Those Who Need PHPMaker Project Sample
  • A New PHPMaker 2023 Project File Is Released
  • PHPMaker 2023 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2023 Is Released!

Search

Recent Comments

  • Masino Sinaga on Masino Extensions for PHPMaker 2024 Is Released!
  • Masino Sinaga on A New PHPMaker 2024 Project File Is Released
  • Masino Sinaga on PHPMaker 2023 Demo Project File Is Released
  • Edward Babatunde on PHPMaker 2023 Demo Project File Is Released
  • Edward Babatunde on Masino Extensions for PHPMaker 2024 Is Released!

Demo Website

  • Demo of I Love PHPMaker 2025 (MasinoExtensions).
  • Stock Inventory Management for PHPMaker 2025.

Another Demo

The following template are not available in this site (must be purchased separately)

  • PHPMaker v2018 Horizontal Vertical Template.
  • PHPMaker v2017 Horizontal Vertical Template.

Demo Explanation

Stock Inventory Management is the good project for your reference, since it uses the real example in the real world. Many useful features you can use from this project, such as how to add the Thousand and Decimal separator character, and also how to calculate multiple row in Grid-Add when End-Users are entering data into the Grid-Add mode.

Categories

  • Customize Template (103)
  • General (4)
  • PHP Report Maker (17)
  • PHP Report Maker Extensions (2)
  • PHPMaker Extensions (84)
  • PHPMaker Projects (7)
  • Tips and Trick (72)

Articles based on version

  • PHPMaker 2025
  • PHPMaker 2024
  • PHPMaker 2023
  • PHPMaker 2022
  • PHPMaker 2021
  • PHPMaker 2020
  • PHPMaker 2019
  • PHPMaker 2018
  • PHPMaker 2017.0.7
  • PHPMaker 12.0.7
  • PHPMaker 11.0.6
  • PHPMaker 10.0.5
  • PHPMaker 9.2.0
  • PHPMaker 8.0.3
  • PHP Report Maker 12

(c) I Love PHPMaker 2010 - 2025 by Masino Sinaga | WordPress | Log in | Back to top