(file) Return to edit-album-dynamic-exe.php CVS log (file) (dir) Up to [RizwankCVS] / geekymedia_web / photo / sspadmin

 1 rizwank 1.1 <?php
 2             require "./inc/head.php";
 3             
 4             			$aid = $_GET['aid'];
 5             			$did = $_GET['did'];
 6             			$action = $_GET['action'];
 7             			
 8             			if ($action == 1){
 9             			mysql_query("INSERT INTO $dltbl (did, aid) VALUES ('$did', '$aid')") or die("Error".mysql_error());
10             			
11             			}
12             			
13             			if ($action == 2){
14             			mysql_query("DELETE From $dltbl WHERE aid='$aid' AND did='$did'") or die("Error".mysql_error());
15             			
16             			}
17             			
18             			header("Location: edit-dynamic-single.php?did=$did&m=2");
19             ?>

Rizwan Kassim
Powered by
ViewCVS 0.9.2