Location: PHPKode > scripts > Dynamic FreeDNS IP Address Update Client > dynamicfreedns_1_1/routerset.php
<HTML>
<HEAD>
<TITLE>Dynamic FreeDNS IP Address Updater Results</TITLE></HEAD>
<BODY>
<H2>Dynamic FreeDNS IP Address Updater Domain and Update Code Results:</H2>

<?php

include "dbconnect.php";

$router="UPDATE router SET yn = '$_POST[router]' WHERE 'yn'!='';";

if (!mysql_query($router,$con2))
  {
  die('Error: ' . mysql_error());
  }
 	
if ($_POST[router] == "1") {

	$url = mysql_query("SELECT * FROM `url`")
or die(mysql_error());

   	$urlval = mysql_fetch_array($url);

$routerans= "Dynamic FreeDNS is using an external script for gathering the i.p. address at: <B> ".$urlval['getip'] . " </B> Please make sure that the script exists there.<BR><BR>";

} else {
$routerans="Dynamic FreeDNS is using the router for getting the i.p. address.<BR><BR>";
}

echo $routerans;

include "closedb.php";

include "footer.php";
?></TD></TR></TABLE>
Return current item: Dynamic FreeDNS IP Address Update Client