묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
회원가입시나 수정시 닉네임/ID /E-mail 은 중복체크를 하자나요 . 이름도 가능할까요?
2005.05.02 20:14
회원가입시나 수정시 닉네임/ID /E-mail 은 중복체크를 하자나요 . 이름도 가능할까요?
$lang->msg_exists_nick_name = \
<?php
$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($HTTP_GET_VARS['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $HTTP_GET_VARS['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
mysql_select_db($database_apmsetup, $apmsetup);
$if($keyword){ $qry = "where sentence like '%$keyword%'"; }
else{ $qry = ""; }
$query_Recordset1 = "SELECT * FROM bible $qry";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $apmsetup) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
if (isset($HTTP_GET_VARS['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $HTTP_GET_VARS['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?>
<html>
<head>
<title>성경검색</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body>
<table border="1">
<tr>
<td>idx</td>
<td>book</td>
<td>chapter</td>
<td>paragraph</td>
<td>sentence</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['idx']; ?></td>
<td><?php echo $row_Recordset1['book']; ?></td>
<td><?php echo $row_Recordset1['chapter']; ?></td>
<td><?php echo $row_Recordset1['paragraph']; ?></td>
<td><?php echo $row_Recordset1['sentence']; ?></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<table cellpadding="0" cellspacing="0" border="0">
<form name="search" type="get" action="">
<tr>
<td><input name="keyword" type="text"></td>
<td><input type="submit" value="검색"></td>
</tr>
</form>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>
뭐 대충 이정도면 안될까요? ^^
문의사항 있으시면 연락 주세요