$airs=array();
$dnum = date(Ymd) * 4;
$warn = "no";
$outit=$_GET['outit'];
$ID = $_GET['ID'];
$usrn = $_GET['usrn'];
$fr = $_GET['fr'];
if($fr != $dnum){
echo(">>>Please Log in to view this page.");
exit();
}
$redirect = "web_feed.php?usrn=".$usrn."&fr=".$dnum;
if($outit=="yes"){
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
mysql_select_db('ecosmar_website', $dbcnx);
$out=mysql_query("DELETE FROM webfeed WHERE ID='$ID' LIMIT 1");
if(!$out){
echo("Could not delete.
");
echo mysql_error();
}else{
header("Location: $redirect");
}//deleted ... back to web feeds
}//outit is yes
?>
Delete Web Feed
Eco-$mart Web Site Administration
DELETE WEB FEED
|
[ WEB FEEDS ]
[ Your Page ]
|
$dtnum=date(Ymd);
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
mysql_select_db('ecosmar_website', $dbcnx);
$getit=mysql_query("SELECT ID,Category,Product,Description FROM webfeed WHERE ID='$ID'");
if(!$getit){
$airs[]="Could not get Web Feed info. Error: ".mysql_error();
}else{
$row=mysql_fetch_array($getit);
$ID=$row['ID'];
$Category=$row['Category'];
$Product=$row['Product'];
$Description=$row['Description'];
echo("" .
"DELETE THIS FEED?" .
" | Category: $Category" .
" | Product: $Product" .
" | Description: $Description" .
" | Warning: Deleting this feed will remove it from the list of feeds available to affiliate web pages. It will remove the Product from all affiliated webstores and websites." .
" | ");
}//gotem
?>
|
if(!empty($airs)){
foreach($airs as $value){
echo("$value
");
}//4each
}//airs is not empty
?>