Join the community and participate in the ongoing discussions. Join Now!
what is the error in this code .

 <form method="get">

                                <div class="" style="overflow-y:scroll;height:72vh;">

                                    <?php include_once '../../connect.php';?>

                                    <?php

                                        if(isset($_GET['msgb'])){

                                            $msg = $_GET['msg'];

                                            $str="SELECT * FROM qa WHERE question='$msg'";

                                            $query= mysqli_query($pcon,$str);

                                            $nrows=mysqli_num_rows($query);

                                            if($nrows > 1){

                                                echo "it exist's ";

                                            }else {

                                                echo "it doesn't exist";

                                            }

                                        }

                                    ?>

                                </div>

                                <div class="">

                                    <div class="input-group mb-3">

                                        <input type="text" class="form-control" name="msg">  

                                        <div class="input-group-append">

                                            <button name="msgb" class="send btn btn-outline-secondary" type="submit">Send</button>

                                        </div>

                                    </div>

                                </div>

                            </form>

ebube roderick
03rd Jun, 2020 @ 07:18 pm