I want to update my password field only if there's a password (not NULL) in input but at the same time, 'username' can update in the table.
This is my current PHP code:
UPDATE `my_tbl`
SET `username`= '".$dataArray['username']."', `password` = IF( IS NULL('".$dataArray['password']."'),
`password`, '".$dataArray['password']."')
WHERE `id` = ".$dataArray['id']
IFshould beIIF?