I am trying to build a php mysql search engine following a tutorial
but somehow when i search for specific name its displaying all results
whats wrong here ?
here is my code
<?php
require "connect.inc.php";
global $conn;
$search_name = $_POST["search_name"];
if(isset($search_name)){
if(!empty($search_name)){
$query = "SELECT name FROM names WHERE name LIKE '%" .mysqli_real_escape_string($search_name). "%'";
$query_run =...
PHP:
from PHP https://ift.tt/2pFdNmo
via IFTTT
0 Comments