Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    visualizza se non è vuoto

    Ciao a tutti, da un pò che sto usando il php.

    Quando usavo l'asp, per visualizzare il risultato estratto nel db mysql.

    <% if risultato <> Null then

    <table>-----

    end if %>


    e invece in php, come sarebbe?


    codice:
        <?php ifnull ($row_DetailRS1['casi_impor'])?>
        <table width="100%" border="0" align="center" bordercolor="#000000">
          <tr>
            <td width="27%">Significant cases:</td>
            <td width="73%"><span class="style4 style5 style5 style5 style5 style5"><?php echo $row_DetailRS1['casi_impor']; ?></span></td>
          </tr>
        </table>
    Grazie...
    ..:: GSFLASH ::..
    HTTP://WWW.GSFLASH.IT
    MCTS - ACP - OCP - ECDL
    Ubuntu 7.10/OpenSuse 10.3/Vista Premium/MacOSX Leopard
    My authentic japanese name is 薗田Sonoda (garden field) 大河 Taiga (big river)

  2. #2
    Utente di HTML.it L'avatar di brodik
    Registrato dal
    Jan 2009
    Messaggi
    765
    Codice PHP:
    if(!empty($row_DetailRS1['casi_impor'])){

    ecc ecc



  3. #3

    [risolto]

    Originariamente inviato da brodik
    Codice PHP:
    if(!empty($row_DetailRS1['casi_impor'])){

    ecc ecc


    Perfetto!
    Grazie molto
    ..:: GSFLASH ::..
    HTTP://WWW.GSFLASH.IT
    MCTS - ACP - OCP - ECDL
    Ubuntu 7.10/OpenSuse 10.3/Vista Premium/MacOSX Leopard
    My authentic japanese name is 薗田Sonoda (garden field) 大河 Taiga (big river)

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.