'".$selcat."' merchants ";
if($num==0) {
} else {
echo "";
echo " | ";
for($j=0;$j<$num;$j++) {
$customerid=mysql_result($rs,$j,"customerid");
$businessname=mysql_result($rs,$j,"businessname");
$businessurl=mysql_result($rs,$j,"businessurl");
$businessemail=mysql_result($rs,$j,"businessemail");
$description=mysql_result($rs,$j,"description");
$description=strip_tags($description, '');
if(mysql_result($rs,$j,"adult")==1) {
$adult="Adult";
} else {
$adult="";
}
if(strlen($businessname)==0) { $businessname=$businessemail; }
if(strtolower(substr($businessurl, 0, 3))=="www") { $businessurl="http://".$businessurl; }
if(strlen($description)==0) { $description="- No description yet -"; }
if(strlen($businessurl)>0) {
$link="";
$linkend="";
} else {
$link=""; $linkend="";
}
if(strlen($businessurl)>5) {
echo "".$link.$businessname."$linkend $adult | ";
echo "".$description." | ";
echo " | ";
}
}
echo " ";
}
?>
|
|
|