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