mysql select 로 자료 출력 > 자유게시판

자유게시판

mysql select 로 자료 출력 정보

mysql select 로 자료 출력

본문

https://youtu.be/DVSNmk4E2EE

 

http://static.se2.naver.com/static/img/bg_quote2.gif) 0 3px no-repeat;color:#888888;">

 

 

<?php include "database.php"; ?>

<?php

  //Create Select Query

  $query = "SELECT * FROM shout";

  $shouts = mysqli_query($con, $query);

?>

<!DOCTYPE html>

<html>

  <head>

    <meta charset="utf-8">

    <title>Talk and Talk</title>

    <link rel="stylesheet" href="css/style.css" type="text/css" />

  </head>

  <body>

    <div id="container">

      <header>

        <h1>Talk And Talk</h1>

      </header>

      <div id="shouts">

        <ul>

          <?php while($row = mysqli_fetch_assoc($shouts)) : ?>

              <li class="shout"><span><?php echo $row['time'] ?> - </span><strong><?php echo $row['user'] ?>:</strong> <?php echo $row['message'] ?></li>

          <? endwhile; ?>

        </ul>

      </div>

      <div id="input">

        <form action="precess.php" method="post">

          <input type="text" name="user" placeholder="이름을 입력하세요" />

          <input type="text" name="message" placeholder="메세지를 입력하세요" />

          <br />

          <input class="shout-btn" type="submit" name="submit" value="글쓰기">

        </form>

      </div>

    </div>

  </body>

</html>


추천
0

댓글 1개

전체 317 |RSS
자유게시판 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT