3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $nomeColuna = array('I' => 'URL_IMAGEM', 'V' => 'URL_VIDEO', 'A' => 'URL_ANEXO', 'E' => 'URL_EXTRA', ); $update = sprintf("UPDATE MW3_CONTEUDO SET %s = '' WHERE SETID = '%s' AND ID_CONTEUDO = '%d'", $nomeColuna['V'], 'MW3', 1); echo $update;
Output for 4.3.0 - 7.1.0
UPDATE MW3_CONTEUDO SET URL_VIDEO = '' WHERE SETID = 'MW3' AND ID_CONTEUDO = '1'