hello. I have a question about my search function in my php page. I have a search function that when the user types the ID# in it will return all the data from the database connected to that id#. My problem is that I have over 350 numbers and if I search for instance the number 15 .. it returns all the data for 15,5,150,151. How do I get it to just recognize just the number 15???
here is the code i use to collect the input number and search table.
any help would be great thanks.
here is the code i use to collect the input number and search table.
Code:
$term=$_POST['term'];
$sql= mysql_query("select * from collection_data where edwards like '%$term%'");
Comment