Search
 
SCRIPT & CODE EXAMPLE
 

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)){
                        }
                    }
                }
                ?>
Comment

how to search like in php

"SELECT Title FROM MyData WHERE Title LIKE '%".$search."%'";
Comment

PREVIOUS NEXT
Code Example
Php :: find object in array php 
Php :: wp+get tags for custom post type 
Php :: php json_encode float 
Php :: laravel create many to many table 
Php :: php exit 
Php :: laravel Access to HMLHttpRequest from origin has been blocked by CORS policy: No Access-Control-Allow-Origin 
Php :: apache use public folder as root 
Php :: array_chunk in php 
Php :: laravel mail cc 
Php :: php call method from another class 
Php :: how to install apache mysql php on ubuntu 18.04 
Php :: where clause in laravel 
Php :: php localhost:8000 
Php :: laravel where and where 
Php :: ternary in php 
Php :: laravel custom pagination 
Php :: how to get the size of an uploaded file in laravel 
Php :: error pdo php Exception 
Php :: file get content php post 
Php :: laravel 8 resource 
Php :: display php error 
Php :: php tutorial 
Php :: php buffer 
Php :: laravel relation with limit 
Php :: mktime() php 
Php :: phpmyadmin export database 
Php :: php gravity forms display 
Php :: php if in database field exists, if exists update, if not create 
Php :: is resource php 8 
Php :: php audio embed 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =