I have a tracking no. 1Z981Y1ED342132798 . But when I search query directly in phpmyadmin it shows the result but when I run the following through php the result will not show. I am sending the field value in GET method during submit my search form. My code is as follows
<?php
$test_qry = mysql_query(Select * from `table_name` where `tracking_no` like '%".$_REQUEST['srch']."%');
?>
<form name="search_form" action="" method="get">
<td>Search:</td>
<td>
<input type="text" name="srch" value="<?php echo $_REQUEST['srch']; ?>"> </td>
<td>
<input type="submit" name="Search" value="Search"> </td>
</form>
Very weird issue, tried a lot, any help will be appreciated. Thanks!