include("../include/global_var.inc"); //include("$incrp/album_session.php"); include("$incrp/var_db.php"); $getId = ""; $getImg = ""; $getDesc = ""; $link = mysql_connect($db_host, $db_user, $db_pw) or die ("can't connect"); if (isset($HTTP_POST_VARS["frmAction"]) && $HTTP_POST_VARS["frmAction"] == "sent") { $img_id = $HTTP_POST_VARS["img_id"]; $img_desc = $HTTP_POST_VARS["img_desc"]; $getImg = $HTTP_POST_VARS["img_thumb"]; $getDesc = $img_desc; #getId = $img_id; $img_desc_sql = "update album.album_image set img_desc = '$img_desc' where id = $img_id"; $status = mysql_query($img_desc_sql, $link); if ($status) { header("Location: http://www.kathyahn.com/album/frame.php?id=$img_id"); } else { $retStr = "Save was unsuccessful. Please try again. email kathy if you continue to have problems."; } } elseif (isset($HTTP_GET_VARS["id"])) { $getId = $HTTP_GET_VARS["id"]; if($getId >= 1187 && $getId <= 1245) { $getQuery = "select id, img_desc, img_thumb from album.album_image where id=$getId"; $getRs = mysql_query($getQuery, $link); if($getRs) { $getRows = mysql_fetch_array($getRs); $getId = $getRows["id"]; $getDesc = $getRows["img_desc"]; $getImg = $getRows["img_thumb"]; } else { $retStr = "
Image id out of range...sorry - make sure you click on a link to get to this page
"; } } else { $retStr = "Image id out of range...sorry - make sure you click on a link to get to this page
"; } } else { $retStr = "Either the img id number was invalid or you've found this page by mistake. Return to the album."; } mysql_close($link); $pgeTitle = "Add/Edit Image Description"; $pgeKeywords = "online photo album edit image description"; $pgeContent = "Online photo album: Edit Image Description"; $pgeJavascript = " "; $pgeContent = "";
if (isset($err_msg) && $err_msg != "") {
$pgeContent .= " $err_msg "; } if (isset($retStr)) { $pgeContent .= " $retStr "; } $pgeContent .= " |