$name value is coming through from form submission.
<?php
if(isset($_POST['Submit']))
{
$name=$_POST["Name"];
}
If statement is not working properly. Whether $name is empty or not, it adds the where clause.
?>
<?php
$sql = "SELECT * FROM dirCsv_500" ?>
<?php if (!empty($name)) {
" where name like '%".$name."%'";
} ?>;
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.