Old Link

');

$notfound = t("You are using an old URL and we can't find the new URL for the document you are looking for, please continue to our home page to find what you are looking for.");

if ($doc_id) {
//echo $doc_id;

$new_node = mysql_query( "SELECT nid FROM flexinode_data WHERE textual_data = '".$doc_id."'" ) or die("SELECT Error: ".mysql_error());

//if(mysql_num_rows($new_node) == 0) {
//$new_node = mysql_query( "SELECT nid FROM cfk_article WHERE doc_id = '".$doc_id."'" ) or die("SELECT Error: ".mysql_error());
//}

while ($row=mysql_fetch_array($new_node)) {
$new_nid = $row[0];
}

if ($new_nid) {
$node_url = "node/".$new_nid;
print t("We have updated our Web site, if you came from a bookmark please update the bookmark to reflect the new URL for this content:\n");
print l('http://www.soundpartners.org'.url($node_url),$node_url);
print t("You will be automatically redirected in 5 seconds, or click on the link above.\n");
drupal_set_html_head('');
} else {
echo $notfound;
}
} else {
echo $notfound;
}

?>