1 rizwank 1.1 <?php
2 require "./inc/head.php";
3
4 $aid = $_GET['aid'];
5 $now = $_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
6 $now = str_replace('auto-link.php', '', $now);
7
8 $q = "SELECT path FROM $atbl WHERE id = '$aid'";
9 $r = mysql_query($q);
10 $rw = mysql_fetch_row($r);
11
12 $path = 'http://'.$now.'albums/'.$rw[0].'/lg/';
13
14 $nq = "UPDATE $itbl SET link = CONCAT('$path', $itbl.src) WHERE aid = '$aid'";
15 mysql_query($nq);
16 header("Location: edit-album.php?m=3&aid=$aid");
17
18 ?>
|