title: LIKE operator not working in MYSQL
body: <p>this is my code  when i run it</p>
  
  <pre><code>$name=$_GET['name'];
  $strSQL = "SELECT * FROM category WHERE name LIKE =" .$name;
  
  $rs = mysql_query($strSQL);
  
  // Loop the recordset $rs
  $response = array();
  while($row = mysql_fetch_array($rs)) {
  
  
      $product = array();
      $product["id"] = $row["id"];
      $product["name"] = $row["name"];
      array_push($response, $product);
  }
  
  echo json_encode($response);
  }
  error:mysql_fetch_array() expects parameter 1 to be resource, boolean given in while($row = mysql_fetch_array($rs))
  </code></pre>
  
  <p>it shows error on  this line help me to fix this</p>