Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to search like in php

<?php
                if (isset($_REQUEST['search_btn'])) {
                    $searchbox = $_REQUEST['inputSearch'];
                    $searchquery = 'SELECT * FROM `userreg` WHERE `userName` LIKE "'."%".$searchbox."%".'" ';
                    $searchresult = mysqli_query($con, $searchquery);
                    if(mysqli_num_rows($searchresult)>0){
                        while($row=mysqli_fetch_array($searchresult)){
                        }
                    }
                }
                ?>
 
PREVIOUS NEXT
Tagged: #search #php
ADD COMMENT
Topic
Name
8+2 =