// Code Added on - June 2 2004 if ($_REQUEST["keyword"]!="") { $select_listings=" SELECT * from contact where ( ycompany like '%" . $_REQUEST["keyword"] . "%' ) order by rank asc"; } else { $select_listings=" SELECT * from contact order by rank asc"; } $select_listings_result=mysql_query($select_listings,$db_link) or die(" ".mysql_error()); while($select_listings=mysql_fetch_array($select_listings_result)) { $ycompany=$select_listings["ycompany"]; $yps=$select_listings["yps"]; $yurl=$select_listings["yurl"]; } // } // Fixed Code // if ($ycompany!="") // { ?>