페이지코드 관리 : [Y_SCRIPTS] 데이터베이스 관리 : [PHPMYADMIN]

TEST FUNCTION : [ADD_TRANSACTION] [LIST_TRANSACTIONS]

HTML FORM CODE 관리 : member
수정 입력
<div class='basic_form_div'>
<form name='basic_form' method='post' action='' target='data_exec_frame'>
<input type='text' class='basic_input_class' name='no' value='$no'>
<input type='text' class='basic_input_class' name='member_id' value='$member_id'>
<input type='text' class='basic_input_class' name='name' value='$name'>
<input type='text' class='basic_input_class' name='email' value='$email'>
<input type='text' class='basic_input_class' name='passwd' value='$passwd'>
<input type='text' class='basic_input_class' name='nick' value='$nick'>
<input type='text' class='basic_input_class' name='keyword' value='$keyword'>
<input type='text' class='basic_input_class' name='artist' value='$artist'>
<input type='text' class='basic_input_class' name='mobile' value='$mobile'>
<input type='text' class='basic_input_class' name='birth_year' value='$birth_year'>
<input type='text' class='basic_input_class' name='gender' value='$gender'>
<input type='text' class='basic_input_class' name='avatar_path' value='$avatar_path'>
<input type='text' class='basic_input_class' name='hello' value='$hello'>
<input type='text' class='basic_input_class' name='agreement' value='$agreement'>
<input type='text' class='basic_input_class' name='joined' value='$joined'>
<input type='text' class='basic_input_class' name='updated' value='$updated'>
<input type='text' class='basic_input_class' name='level' value='$level'>
<input type='text' class='basic_input_class' name='status' value='$status'>
</form>
</div>
생성된 테이블 목록 : BLANK
article
article_attach
article_complains
article_likes
article_reply
article_reply_complains
article_reply_likes
collect
count_hits
count_likes
member
member_artist
member_artist_works
member_artist_works_simple
member_artwork
member_mailing
member_visitor

$no=$_POST['no'];
$member_id=$_POST['member_id'];
$name=$_POST['name'];
$email=$_POST['email'];
$passwd=$_POST['passwd'];
$nick=$_POST['nick'];
$keyword=$_POST['keyword'];
$artist=$_POST['artist'];
$mobile=$_POST['mobile'];
$birth_year=$_POST['birth_year'];
$gender=$_POST['gender'];
$avatar_path=$_POST['avatar_path'];
$hello=$_POST['hello'];
$agreement=$_POST['agreement'];
$joined=$_POST['joined'];
$updated=$_POST['updated'];
$level=$_POST['level'];
$status=$_POST['status'];
인서트문(INSERT/CREATE)
$insert_query="insert into `member`( `no`, `member_id`, `name`, `email`, `passwd`, `nick`, `keyword`, `artist`, `mobile`, `birth_year`, `gender`, `avatar_path`, `hello`, `agreement`, `joined`, `updated`, `level`, `status`) values( '$no', '$member_id', '$name', '$email', '$passwd', '$nick', '$keyword', '$artist', '$mobile', '$birth_year', '$gender', '$avatar_path', '$hello', '$agreement', '$joined', '$updated', '$level', '$status')";
mysqli_query($connect,$insert_query);
업데이트문(UPDATE/MODIFY)
$update_query="update `member` set `member_id`='$member_id', `name`='$name', `email`='$email', `passwd`='$passwd', `nick`='$nick', `keyword`='$keyword', `artist`='$artist', `mobile`='$mobile', `birth_year`='$birth_year', `gender`='$gender', `avatar_path`='$avatar_path', `hello`='$hello', `agreement`='$agreement', `joined`=now(), `updated`=now(), `level`='$level', `status`='$status' where `no` like '$no'";
mysqli_query($connect,$update_query);
셀렉트문(READ/VIEW) : Multi-values
$records_query="select * from `member` where `NO` like '$no'";
$records_result=mysqli_query($connect,$records_query);
$records_num=mysqli_affected_rows($connect);
for($i=0;$i<$records_num;$i++) {
$record_row=mysqli_fetch_array($records_result);
//your code for table record value
}
셀렉트문(READ/VIEW) : Specific-value
$record_query="select * from `member` where `NO` like '$no'";
$record_result=mysqli_query($connect,$record_query);
$record_row=mysqli_fetch_array($record_result);
//your code for table record value
델리트문(DELETE/ERASE)
$delete_query="delete from `member` where `NO` like '$no'";
mysqli_query($connect,$delete_query);