Hi Friends..
I m new on this site and also very new in web development field.Now i m trying to build my first web site wich is data base driven web site. i m facing some problems to build it please help me…
problem #1 is, i have a search page through which user can search entire web site for mobile sets.This page includes drop down lists for search options,Two of them are named “mobile company” and “mobile model” i want that when user select a company for example “NOKIA” then second drop down list named “mobile model” only display NOKIA models and if first selected option was for example SAMSUNG then second list only display SAMSUNG models…how can i do this.
problem #2 is for collecting above information from search page i have a php script as under
****code
$company=$_POST[‘company’];
$model=$
$result = mysql_query(“SELECT * FROM contacts WHERE company=’$company’AND model=’$model'”);
**code
Now problem is that what a have to do when user select “Any Company” and/or “Any model” from search page.
Dear Friends please help me as soon as possible….
Thanks in anticipation..
Tanveer