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

TEST FUNCTION : [ADD_TRANSACTION] [LIST_TRANSACTIONS]

HTML FORM CODE 관리 : ATTACHED_FILES
수정 입력
<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='a_code' value='$a_code'>
<input type='text' class='basic_input_class' name='file_name' value='$file_name'>
<input type='text' class='basic_input_class' name='file_path' value='$file_path'>
<input type='text' class='basic_input_class' name='file_caption' value='$file_caption'>
<input type='text' class='basic_input_class' name='file_type' value='$file_type'>
<input type='text' class='basic_input_class' name='file_size' value='$file_size'>
<input type='text' class='basic_input_class' name='saved' value='$saved'>
<input type='text' class='basic_input_class' name='downloaded' value='$downloaded'>
</form>
</div>
생성된 테이블 목록 : BLANK
ARTICLES
ARTICLES_GROUP
ARTICLE_CANDIDATES
ARTICLE_REPLIES
ARTICLE_VOTE_CANDIDATES
ARTICLE_VOTE_DATA
ATTACHED_FILES
CONSTITUTION
CONSTITUTION_COMPARE
CONSTITUTION_S
CONSTITUTION_S_CANDIS
CONSTITUTION_S_OPINION
CONSTITUTION_S_VOTE
CONSTITUTION_S_VOTES
DELIBERATIONS
DELIBERATIONS_GROUP
DELIBERATIONS_REPLY
DELIBERATIONS_VOTE
DEMONSTRATION
MEMBER
POLICIES
RESPONDINGS
RESPONDINGS_REPLY
TEST_VOTE
UNITS
UNITS_MEMBERS
ddf_article
ddf_attachment
ddf_collect
ddf_likes
ddf_member
ddf_reply

$no=$_POST['no'];
$a_code=$_POST['a_code'];
$file_name=$_POST['file_name'];
$file_path=$_POST['file_path'];
$file_caption=$_POST['file_caption'];
$file_type=$_POST['file_type'];
$file_size=$_POST['file_size'];
$saved=$_POST['saved'];
$downloaded=$_POST['downloaded'];
인서트문(INSERT/CREATE)
$insert_query="insert into `ATTACHED_FILES`( `NO`, `A_CODE`, `FILE_NAME`, `FILE_PATH`, `FILE_CAPTION`, `FILE_TYPE`, `FILE_SIZE`, `SAVED`, `DOWNLOADED`) values(null, '$a_code', '$file_name', '$file_path', '$file_caption', '$file_type', '$file_size', '$saved', '$downloaded')";
mysqli_query($connect,$insert_query);
업데이트문(UPDATE/MODIFY)
$update_query="update `ATTACHED_FILES` set `A_CODE`='$a_code', `FILE_NAME`='$file_name', `FILE_PATH`='$file_path', `FILE_CAPTION`='$file_caption', `FILE_TYPE`='$file_type', `FILE_SIZE`='$file_size', `SAVED`=now(), `DOWNLOADED`='$downloaded' where `NO` like '$no'";
mysqli_query($connect,$update_query);
셀렉트문(READ/VIEW) : Multi-values
$records_query="select * from `ATTACHED_FILES` 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 `ATTACHED_FILES` 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 `ATTACHED_FILES` where `NO` like '$no'";
mysqli_query($connect,$delete_query);