GOP 0 Denunciar post Postado Abril 5, 2007 Olá galera sou novato com o php ! Estou tendo um pequeno problema ! Eu gostaria de mudar a cor da celula de uma tabela conforme uma condição ! Ex. <table> </tr> <tr> <td>Resultado:</td> <td> <? if (condição) { * Mudar a cor da celula da tabela para preto } else { * Mudar a cor da celula da tabela para cinza } ?> </td> </tr> </table> Como devo fazer ??? :blink: Compartilhar este post Link para o post Compartilhar em outros sites
crucifier 0 Denunciar post Postado Abril 5, 2007 faça assim:[tr]Resultado:<? if (condição) { echo '';}else { echo '';}?>[/tr] Compartilhar este post Link para o post Compartilhar em outros sites
GOP 0 Denunciar post Postado Abril 5, 2007 O forum iMasters é muito show hein !!valeu crucifier !! funfo direitinho aqui !! Compartilhar este post Link para o post Compartilhar em outros sites