The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Logic Question: PHP Search Array
masonh928
post Apr 9 2017, 10:11 PM
Post #1


Serious Coder
*****

Group: Members
Posts: 253
Joined: 17-August 13
From: Indiana
Member No.: 19,570



This seems a little bit elementary, but I would really like to lay this logic out for critique. Often times when people think of a search page, they think of searching a database, but I have a folder with a list of pages that have info on certain poultry breeds. I basically just need a search function that retrieves breed pages. I'm thinking of using AJAX for this just for ease of use, not sure yet... but anyways. I was thinking that since I only have about 40 breeds, I could make an array of all the titles and search based on the array. Any other ideas? Just wanted to see if this logic checks out.

~Thanks,
Mason!

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Apr 10 2017, 02:47 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,648
Joined: 10-August 06
Member No.: 7



If you're going to use a search script, you might use Ajax to give the user search suggestions (the way e.g. Google does).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 12:46 AM