1 rizwank 1.1 <?php
2 require "./inc/head.php";
3
4 $q = $_GET['q'];
5
6 $q = explode("|", $q);
7
8 for ($i=0; $i < count($q); $i++)
9 {
10 if ($q[$i] != '')
11 {
12 $s = explode(",", $q[$i]);
13 $o = $s[0];
14 $id = $s[1];
15 mysql_query("UPDATE $dltbl SET display=$o WHERE aid = $id and did=$did") or die(mysql_error());
16 }
17 }
18
19 header("Location: edit-dynamic-single.php?m=1&did=$did");
20
21 ?>
|