My search function isn't working properly... I will do a search where I know there should be multiple results but it does not show all of the results it should only a few select ones.
here is the code
<!-- Search form -->
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
<input type="text" name="search_text" size="50" maxlength="50"><input type="submit">
</form>
<?php
$sql = "
SELECT Name, AKA, DOB, Address, Conviction, Description, Victim, Comments, Pic
FROM sexoffenders
";
// If search_text has been sent ...
if(isset($_GET['search_text'])){
$sql .= "
WHERE CONCAT(Name,' ',AKA,' ',Address,' ',Conviction,' ',Description,' ',Victim,' ',Comments,' ') LIKE
'%".$_GET['search_text']."%'
";
}
Thanks in advance for any help