Selective Update Using PHP PDO

neither. you need to make a separate statement for each case since they have different numbers of parameters.