[PHP-DB] Displaying one field From: Todd Cary (todd <email protected>)
Date: 09/28/00

In the following script, how would I just display the field, "PH_CD"?

    $stmt = 'SELECT * FROM PHOTOS';
    $sth = ibase_query($stmt,$dbh);
    echo("<TABLE border=1>");
    while ($row = ibase_fetch_row($sth)) {
        echo("<TR>");
        foreach($row as $col){
          echo("<TD>" . $col . "</TD>");
          };
        echo("</TR>");
    };
    echo("</TABLE>");

$col->PH_CD does not work.

Many thanks........

Todd

--
Todd Cary
Ariste Software
todd <email protected>

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>