* write.htm [입력폼]
<form name=member_input method=post action=member_input_proc.php> |
* member_input_proc.php [저장 처리폼]
<?php function msg_go($msg,$go_uri){ $id = $_POST[id]; if($id=="" || $name=="" || $pass1=="" || $pass2==""){ if($pass1 != $pass2){ $connect = mysql_connect("localhost", "scjc2", "scjc.ac.kr");
$sql = "insert into member values('','$id','$name','$pass1','$hp')"; $result = mysql_query($sql, $connect); if($result){ |
* list.php [목록페이지] / 페이지처리
<?php //$total = mysql_rum_rows($result); ?> |
* list.php [목록페이지] / 페이지처리
<?php $page=$_GET[page]; $total_page = ceil($total/$view_record); // 전체 페이지수 |
* connect.php [DB접속]
<?php |