// ÀÛ¼ºÀÚ : ÃÖ»ó¹Î // ¼öÁ¤ÀÏ : 2002³â 3¿ù 12ÀÏ // ÆÄÀϸí : memberModify.html // ȸ¿øÁ¤º¸ º¯°æ include ("../inc/header.html"); include ("../common/common.php"); include ("../common/dbConnect.php"); memberCheck1(); function modifyData() { global $conn, $name, $email, $homepage, $password, $password1, $level, $memberID, $mode; if($mode != "modify") return; if($name == "" ) { alert("ÃÖ¼ÒÇÑ À̸§Àº ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.", 1); return; } if($password != "" && ($password != $password1)) { alert("ÆÐ½º¿öµå¸¦ µÑ´Ù ÀÔ·ÂÇÏÁö ¾ÊÀ¸¼Ì°Å³ª, ÀÔ·ÂÇÑ µÎ°³ÀÇ ÆÐ½º¿öµå°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.", 1); return; } $query = "update member set name='$name', email='$email', homepage='$homepage' "; if($password != "") $query .= ", password='".md5($password)."' "; if($level != "") $query .= ", level=$level "; $query .= "where id='$memberID'"; if($conn->runQuery($query)) { alert("¼öÁ¤Çß½À´Ï´Ù.", 1); echo ""; exit(); } } function printTable() { global $conn, $no, $memberID, $memberLevel; $query = "select * from member where id='$memberID'"; $result = $conn->runQuery($query); $rows = mysql_fetch_array($result); if($rows[id] != $memberID) alert("ÀÚ½ÅÀÇ Á¤º¸¸¸ ¼öÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.", 2); echo "