Edit Navigation Link
$id=$_GET['navid'];
$username="atr_cms";
$password="****";
$database="atr_cms1";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to connect to database");
$query="SELECT * FROM `navigation` WHERE navid='$id'";
$result = mysql_query($query) or die (mysql_error());
$num = mysql_num_rows($result);
mysql_close();
$i=0;
while ($i < $num) {
$name = mysql_result($result,$i,"name");
$url = mysql_result($result,$i,"url");
$title = mysql_result($result,$i,"title");
$target = mysql_result($result,$i,"target");
$position = mysql_result($result,$i,"position");
$id = mysql_result($result,$i,"navid");
echo "
To DELETE this link from the navigation:
Click Here
(Please be sure you wish to delete this link, there will be no further confirmation screens!).
|