0) { $id = $row_daexpert['id']; $eid = $row_daexpert['eid']; $companyname = $row_daexpert['companyname']; $address = $row_daexpert['address']; $address2 = $row_daexpert['address2']; $city = $row_daexpert['city']; $state = $row_daexpert['state']; $postalcode = $row_daexpert['postalcode']; $country = $row_daexpert['country']; $companyphone = $row_daexpert['companyphone']; $fax = $row_daexpert['fax']; $tollfree = $row_daexpert['tollfree']; $usa = $row_daexpert['usa']; $eu = $row_daexpert['eu']; $ee = $row_daexpert['ee']; $asia = $row_daexpert['asia']; $china = $row_daexpert['china']; $india = $row_daexpert['india']; $mexico = $row_daexpert['mexico']; $brazil = $row_daexpert['brazil']; $category = $row_daexpert['category']; $subcategory = $row_daexpert['subcategory']; $psdescription = $row_daexpert['psdescription']; $companyurl = $row_daexpert['companyurl']; $file1 = $row_daexpert['file1']; $firstname = $row_daexpert['firstname']; $lastname = $row_daexpert['lastname']; $contacttitle = $row_daexpert['contacttitle']; $phone = $row_daexpert['phone']; $emailaddress = $row_daexpert['emailaddress']; if (isset($theeid) AND $theeid > 0 ) { $eid = $theeid; } } else { /* Redirect to a different page in the current directory that was requested */ $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $extra = 'index.php'; header("Location: http://$host$uri/$extra"); exit; } $wherecondition = "WHERE category = '$category' AND subcategory = '$subcategory' AND file1 <> '' AND eid=2 "; ?>