Don't include the semi-colon at the variable name. Try this instead:
$variable = $_POST['form_field_name'];
$query = "SELECT name, contacts, details FROM members WHERE name LIKE '%$parameter$%'
then use runQuery( $query );
If you are unsure you should output the query to the screen to ensure it is doing what you think,
put print_r ($query );
Hope this helps!