CodeSarang.Com
Home | All categories Join | Login | 검색   

 

php에서 ID체크할때 들어가는 소스

등록자 : a99jsh (정상혁), 2008-09-12
글수정 | 글삭제




$db = mysql_connect("localhost","root","1111");//root는 계정명 , 1111은 비밀번호
      mysql_select_db("shop",$db); // shop=DB name

$sql = "select id from member where id='$id'";
       //member=table name
$result = mysql_query($sql);


//print mysql_num_rows($result);
mysql_num_rows($result);

..........

회원가입시 ID 검색 체크를 할때 mysql(DB)와 연동 접속할때 쓰이는 소스입니다.



글수정 | 글삭제
http://codesarang.com. mail to cpueblocpueblo.com