|
require "/home/httpd/reynolds/security/.mysql.info";
mysql_select_db("qpages");
if (!$task) { $task = "select"; }
if ($task=="select") {
echo " Please Select from one of the following Categories:";
echo "Community";
echo "Q Pages Advertisers";
echo "Australia";
echo "Travel and Tourism";
echo "International";
echo "Search Engines";
} elseif ($task=="list") {
$result = mysql_query("SELECT * FROM links WHERE link_category='$cat' ORDER BY link_name");
echo "
There are a total of " . mysql_num_rows($result) . " $cat links
";
echo " ";
$x=1;
for ($count=0; $count"; } else { $x++; }
$link_name = mysql_result($result,$count,"link_name");
$link_url = mysql_result($result,$count,"link_url");
$link_description = mysql_result($result,$count,"link_description");
$link_email = mysql_result($result,$count,"link_email");
echo"| ";
echo " | ";
}
echo " ";
}
?>
|