Jump to content

threeFeathers

New Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About threeFeathers

  • Rank
    Newbie
  1. $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."%'"; } ?>;
×
×
  • Create New...

Important Information

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.