/*$data = "niki_bloghop";
$user = "niki_bloghop";
$pass = "wOb0ouW7QqZO";
$host = "localhost";
*/
include "cpLinksConfig.php";
$sort = $_REQUEST['sort'];
$showname = $_REQUEST['name'];
$connection = @mysql_connect("$host", "$user", "$pass") or die("Couldn't connect.");
$db = @mysql_select_db($data, $connection) or die("Couldn't select database.");
if (!empty($sort)) {$sort=$sort;}
else {$sort = "ID";}
$getlinks ="SELECT * FROM hoppers WHERE hide!='Y' ORDER BY $sort";
$getMylinks = mysql_query($getlinks,$connection) or die("coundn't verify link database");
while ($row = Mysql_fetch_array($getMylinks)) {
$linkID = $row['ID'];
$name = $row['name'];
$site = $row['site'];
$url = $row['url'];
if (!empty ($showname)) {$thename = "$name - ";}
else {$thename = "";}
?>
document.write(" echo $thename ?> echo($site); ?>
")
}
mysql_close();
?>