I'm writing some PHP to query from a MySQL database that I have setup on my WAMP server. I'm also learning PHP and html javascript as I go, so the syntax of both languages is still a little unfamiliar to me.

EDIT: The syntax error has been solved, however I am now receiving a 

Undefined index: family

error when I compile. I am running two files through my server, front.php and back.php. Front contains a selector form where the user may choose a filter to be applied to the php query to MySQL. back.php receives the selection with $\_REQUEST and uses that in a SELECT query. I have posted the code relating to the selector form in front.php below.

```
<form method="POST">
<select name="family" onchange="showUser (this.value)">
<option value="empty">Select a Family:</option>
<option value="capacitor">capacitor</option>
<option value="resistor">resistor</option>
<option value="ferrite bead">ferrite bead</option>
</select>
</form>

```

Here is the $\_REQUEST call in back.php

```
$sql="SELECT * FROM testv2 WHERE family='".$_REQUEST['family']."'";
$result = mysqli_query($con,$sql);

```