Welcome Guest, Not a member yet? Register   Sign In
CI forum search results code
#2

[eluser]davidbehler[/eluser]
I don't know for sure, but if I had to guess I would say they do it like this:

When you perform a search, they add an entry to a table in their database where they save the search term you used, the list of results (id only I would say) and the timestamp when the search was performed. What you see in the URL is a unique key that's created for every search (possibly the primary key in the search table) using some kind of hashing..md5(search_term.timestamp) or whatever.

Further guessing leads to the assumption, that the search table works like some kind of cache...meaning that if there's someone performing the same search only minutes after you did there will be no new entry in the search table but the results from your search will be returned.

I don't know if that's really how they do it, but that's what my search library does Smile


Messages In This Thread
CI forum search results code - by El Forum - 05-19-2009, 01:10 AM
CI forum search results code - by El Forum - 05-19-2009, 01:40 AM
CI forum search results code - by El Forum - 05-19-2009, 01:42 AM
CI forum search results code - by El Forum - 05-19-2009, 07:03 AM
CI forum search results code - by El Forum - 05-19-2009, 08:58 AM
CI forum search results code - by El Forum - 05-19-2009, 12:17 PM
CI forum search results code - by El Forum - 05-19-2009, 12:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB