can anyone tell me why this code don't work. I run it and I get no results even when I know the variable matches a entry in the database.
$name = $_POST[group_name];
$result = mysql_query("SELECT group_id FROM newsletter_group WHERE name='$name'");
$row = mysql_fetch_array($result);
$gid = $row["group_id"];