Page 340 - MDP2022-2
P. 340

<input  type="submit"  class="btn  btn-primary
                            display-4"  value="추가하기"></div>
                                                    </form>
                                            </div>
                                    </div>
                            </div>
                    </section>
            </body>
            </html>

            <?php


            include_once("connection.php");
            if  ($connect  ==  false)
                    echo  "NO";
            $food_name  =  $_POST['food_name'];
            $food_type  =  $_POST['food_type'];
            $date  =  $_POST['date'];
            $last_date  =  $_POST['last_date'];

            $sql  =  "insert  into  material(food_name,  food_type,  date,  last_date)  values
            ('{$_POST['food_name']}',  '{$_POST['food_type']}',  '{$_POST['date']}',  '{$_POST['last_date']}')";


            $query  =  mysqli_query($connect,  $sql);
            if  ($query  ==  false){
                    echo  "NO";
                    printf("Error  message:  %s\n",  mysqli_error($connect));
            }


            echo("<script>location.href='material_add.html';</script>");
            ?>


            [  신선도  화면  ]
            <!DOCTYPE  html>
            <html  lang="ko">

            <head>
                                                    .
                                                    .
                                                    .
            </head>
            <body>
                                                    .
                                                    .
                                                    .

                <section  data-bs-version="5.1"  class="features3  cid-tgIr2fc1QQ"  id="features3-g">
                    <div  class="container">
                        <div  class="mbr-section-head">
   335   336   337   338   339   340   341   342   343   344   345