Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to search like username,email and phone number in php

if (isset($_REQUEST['srh_btn'])) {
                    $searchname = $_REQUEST['inputSearch'];
                    $query = ' SELECT * FROM `userreg` WHERE CONCAT(userName,userEmail,userPhone) LIKE "' . "%" . $searchname . "%" . '" ';
                    // die($query);
                }
Comment

PREVIOUS NEXT
Code Example
Php :: old codestar textarea field 
Php :: Php excel from Z to AA 
Php :: laravel asset prevent browser caching 
Php :: mysqli_fetch_all() expects parameter 1 to be mysqli_result, boolean given in C:xampphtdocscomplete-blog-phpadminincludespost_functions.php on line 31 
Php :: laravel openstreetmap 
Php :: Who developed Laravel? 
Php :: strrev 
Php :: which song has the most curse words 
Php :: laravel factory counter 
Php :: php get list of months by year 
Php :: undefined array key php 
Php :: Wordpress srcset with ACF Image & lazy Load 
Php :: php form validation and submit to database 
Php :: laravel Join columns of Day, Month , Year to calculate age 
Php :: pg_relation_size in mb 
Php :: laravel list unique indexes 
Php :: Sorting Products by Custom Meta Fields 
Php :: wordpress deny user to access wp-admin programmatically 
Php :: fetch data from database withour restarting console php 
Php :: cURL error 60 : SSL certificate in Larvel in pusher or facebook authentication 
Php :: how to convert array into json php 
Php :: symfony retun json 
Php :: php generate html attributes from array 
Php :: composer install error 
Php :: laravel how to call function in same controller 
Php :: nl_langinfo — Query language and locale information 
Php :: import csv to laravel 
Php :: laravel project in css 
Php :: laravel eloquent get current sequence value 
Php :: PHP vprintf — Output a formatted string 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =