I am bit confused too. But if i understood it right:
why dont you try to use "if" to check if the field has a value returned or not. if not returned do not include it in the query.
try to make your query dynamically something like: (Please be carefull with " and ', i am not right here)
$query_rsusers1 = "UPDATE users SET transStatus = '".$transtatusField. "',";
if ( isset ( $transIDField ) )
{
$query_rsusers1 .= 'transID = '".$transIDField.',"';
}
..........................................................
Hope that helps, but sorry if i am wrong or if i understood it wrong.