티스토리 뷰
로그인 필요
http://wwuu12366.dothome.co.kr/php/mypage/mypage.php
로그인
wwuu12366.dothome.co.kr
<?php
include "../connect/connect.php";
include "../connect/session.php";
include "../connect/sessionCheck.php";
?>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>회원 정보</title>
<!-- style -->
<?php
include "../include/style.php";
?>
<!-- //style -->
</head>
<body>
<?php
include "../include/skip.php";
?>
<!-- //skip -->
<?php
include "../include/header.php";
?>
<!-- //header -->
<main id="contents">
<h2 class="ir_so">컨텐츠 영역</h2>
<section class="join-type gray">
<div class="member-form">
<h3>회원 정보</h3>
<div class="join-intro">
<div class="face">
<img src="../assets/img/mypage_img/default.svg" alt="기본이미지">
</div>
<?php
//youEmail, youNickName, youName, youBirth, youPhone, youGender, youSite, youIntro
$memberID = $_SESSION['memberID'];
$sql = "SELECT youEmail, youNickName, youName, youBirth, youPhone, youGender, youSite, youIntro FROM myMember WHERE memberID = {$memberID}";
$result = $connect -> query($sql);
// echo "{$memberID}";
if($result) {
$memberInfo = $result -> fetch_array(MYSQLI_ASSOC);
}
?>
<div class="intro"><?=$memberInfo['youNickName']?>님의 자기소개 : <?=$memberInfo['youIntro']?></div>
</div>
<div class="join-info">
<ul>
<?php
//이메일 닉네임 이름 생일 번호 성별 사이트
?>
<li>
<strong>이메일</strong>
<span><?=$memberInfo['youEmail']?></span>
</li>
<li>
<strong>닉네임</strong>
<span><?=$memberInfo['youNickName']?></span>
</li>
<li>
<strong>이름</strong>
<span><?=$memberInfo['youName']?></span>
</li>
<li>
<strong>생일</strong>
<span><?=$memberInfo['youBirth']?></span>
</li>
<li>
<strong>번호</strong>
<span><?=$memberInfo['youPhone']?></span>
</li>
<li>
<strong>성별</strong>
<span><?=$memberInfo['youGender']?></span>
</li>
<li>
<strong>사이트</strong>
<span><?=$memberInfo['youSite']?></span>
</li>
</ul>
</div>
<div class="join-btn">
<a href="myPageModify.php">수정하기</a>
<a href="myPageLeave.php">탈퇴하기</a>
</div>
</div>
</section>
</main>
<!-- //main -->
<!-- footer -->
<?php
include "../include/footer.php";
?>
<!-- //footer -->
</body>
</html>
'PHP' 카테고리의 다른 글
PHP 사이트 만들기 - 댓글 페이지 : 댓글 화면 (0) | 2022.04.17 |
---|---|
PHP 사이트 만들기 - 마이페이지 입력 정보 세이브 (0) | 2022.04.17 |
PHP 사이트 만들기 - 헤더 만들기 (0) | 2022.04.17 |
PHP 사이트 만들기 - 로그인 체크 PHP 만들기 (0) | 2022.04.17 |
PHP 사이트 만들기 - session_start() (0) | 2022.04.17 |
댓글
© 2018 webstoryboy