PDA

View Full Version : Database search: php or Flash


ashley_coleman
02-12-2008, 11:48 PM
We have a (probably small) news & events database for a corporate site, and need to create a search engine in Flash. Are either of these options better than the other?:

1. Put the search logic into a php script, get flash to call it and just display the results.
-Only relevant results are sent over the internet
-Every search requires a new call to the php/data base

2. Put the search logic into the Flash, and have the php simply to create an XML file
-The entire database is sent over the net work, but only once.
-New search calls data once when movie is loaded, and never has to do it again.

CyanBlue
02-13-2008, 04:19 PM
If the data is big, I'd go with the PHP... It makes more sense to send out smaller chunks whenever you need it... But if you have smaller data to search, an XML might not be a bad idea... ;)