Question: I have a search function on my site which uses GET. I have been trying to code something that would take words out of the GET post and then search in using SQL. This is what I been able to do:

```
$id = $_GET["search"];  
$searchTerms = explode(' ', $id);
$searchTermBits = array();
foreach ($searchTerms as $term) {
    $term = trim($term);
    if (!empty($term)) {
        $searchTermBits[] = "Name LIKE '%$term%'"
    }
}

$lol = mysql_query("SELECT * FROM database WHERE .implode(' AND ', $searchTermBits).")

```

I don't know what I'm doing wrong. I get the following error:

```
 You have an error in your SQL syntax;
 check the manual that corresponds to your MySQL server 
 version for the right syntax to use near '(' AND ', Array).' at line 1

```

Answer: 
No, it doesn't hurt the current setup. The install program knows what's installed already.

Having said that, I long ago got into the habit of installing *all* of Cygwin since, despite its size, it's still minuscule compared to the size of modern hard disks. That way, you won't ever have to worry about whether a package is installed or not.
Additional option, may be helpful for someone:

To install additional packages in windows from **windows command line** you can use your **cygwin installer**.  

I suppose, you've already downloaded it to install cygwin from here <https://cygwin.com/install.html>.

```
$ setup-x86_64.exe -q -P graphviz

```

see this guide for details: 
<http://preshing.com/20141108/how-to-install-the-latest-gcc-on-windows/>