Many thanks for all your suggestions.
I have decided to use a function because I some other calculations I need to process once I have managed to transfer the data over.
function addMem($username, $email){
$q = "INSERT INTO".TBL_MEMBERS. "VALUES (‘‘, $username, $email)...