Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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);
                }
 
PREVIOUS NEXT
Tagged: #search #phone #number #php
ADD COMMENT
Topic
Name
6+9 =