View Single Post
  #8 (permalink)  
Old 07-13-05, 02:04 AM
bannme bannme is offline
Newbie Coder
 
Join Date: Jun 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Let me think something.

before start of your sql make sure to define yourchoices as
PHP Code:

$yourchoice " WHERE $symptom  LIKE '%$symptom%'";

    if(!empty(
$manufacturer)) {
    
$yourchoice " AND $manufacturer LIKE '%$manufacturer%'";
    }
    if(!empty(
$component)) {
    
$yourchoice " AND $component LIKE '%$component%'";
    }

//    here is draft sql


$result=MYSQL_QUERY(select $whatyouwant $fromyourtables $yourchoices $yourorder)
or die (
mysql_error()); 
I think this can help
Reply With Quote