$delq = "DELETE FROM '$tablename' WHERE id='$id'"; will this work?
Without testing it myself, it looks fine to me. Did you get an error?
well it didnt insert i just wondered if it was laid out right
it shouldent insert anything, it should delete.
echo $delq;
To make suer the vars are set