Page 113 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 113

</section>
                <!-- Section: login -->


                <!-- Core JavaScript Files -->
                <script src="js/jquery.min.js"></script>
                <script src="js/bootstrap.min.js"></script>
                <script src="js/jquery.easing.min.js"></script>
                <script src="js/jquery.scrollTo.js"></script>
                <script src="js/wow.min.js"></script>
                <!-- Custom Theme JavaScript -->
                <script src="js/custom.js"></script>




            </body>

            </html>






                 - memberlogin.php



            <?php
             $user_id = $_POST["user_id"];
             $pw = $_POST["pw"];

             $connect = mysql_connect("localhost","root","pi");
             mysql_select_db("test");

             $sql = "select * from test where user_id = '$user_id' and pw = '$pw'";
             $result = mysql_query($sql);


             #$row = mysql_fetch_array( $result, MYSQL_NUM );


             $count = mysql_num_rows( $result );

             if ( $count > 0 ) {
                    echo "login success"
             }
             else{
                    echo "login fail";



                                                         -  106  -
   108   109   110   111   112   113   114   115   116   117   118