aha...........but hold the champagne!
thanks devinemke thats great,
but is there any reason why this shouldnt work?
$query = "SELECT * FROM crew WHERE '" . $_POST['field'] . "' = '" . $_POST['input'] . "' ";
I know SQL is fine because the following works
$query = "SELECT * FROM crew WHERE firstname = '" . $_POST['input'] . "' ";
FYI i'm testing the first query with $_POST set to "firstname"