체크 아이디 > PHP

본문 바로가기
사이트 내 전체검색

PHP

체크 아이디

페이지 정보

profile_image
작성자 최고관리자
댓글 0건 조회 4,055회 작성일 21-02-09 11:30

본문

$result = mysql_query("SELECT count(w_id) FROM 테이블명 WHERE w_id = '$w_id'");
 if (!$result) {
    error("QUERY_ERROR");
    exit;
 }
 $rows = mysql_result($result,0,0);
 if ($rows) {
    echo "
        <form>
        <table width='230' border='0' cellspacing='5' align='center'>
        <tr>
          <td align='center'>
          신청하신 아이디는 <br><font color='red'>이미 등록</font>되어 있습니다! <p>
          <b>다른 아이디로 신청</b>하여 주십시오.
          </td>
        </tr>
        <tr>
          <td align='center'>
          <font size=2>
          <input type='button' onClick='replace_id()' value='닫기'>
          </font>
          </td>
        </tr>
        </table>
        </form>
    "; 

 exit;
 }

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

  • 게시물이 없습니다.

접속자집계

오늘
2,060
어제
4,039
최대
6,642
전체
830,575
contact : webmaster@beautipia.co.kr
Copyright © beautipia.co.kr. All rights reserved.