I am developing a website that has four different types of skins (Sonique, Winamp, WMP, WMP text-only)
Each type of skin has its own database, so, for example, to display a skin from the Winamp DB I'll use the following code to decide the database, based on the variable App handed in the http header.
I will have 4 databases, Skin_Winamp, Skin_Sonique, Skin_WMP, and Skin_WMPt (for text-only skins) [ Edit: 'Will' means that I've only got the Winamp DB sorted for now. ]
$db = mysql_connect("localhost","username","password");
mysql_select_db("kittfan2_uk_db",$db);
$comp_id = "SELECT * FROM Skin_".$App." WHERE comp_id=".$Component;
$fetched = mysql_query ($comp_id,$db);
$skinFile = mysql_fetch_object($fetched);
Then I look in the $skinFile variable to find the various attributes of the skin.
I want to search these databases.
How would I go about making a 'search engine' to look for a particular skin by name, or author?
I've got, on another page, a search box with the choice between searching for skin, author or reviewer and the choice of app, (the form method is post, btw) but how would I use these variables to select a database and search it?
KITTfan2K.
p.s. I have found a script to let me find multiple records, but I need some help to figure out the intricacies of searching.