perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Hall" <>
Subject Display using array ref of NULLs in dynamic table
Date Fri, 24 Jan 2003 05:54:24 GMT

After selecting a set of data using the following:
   $dat = $sth_rte_sel -> fetchall_arrayref;

and then attempting to display in a table:

<tr bgcolor="[+ $row % 2 == 0?'#ffffc6':'#ffe7c6' +]">
    <td>[+ $dat->[$row][1] +]</td>
    <td>[+ $dat->[$row][3] +]</td>
    <td>[+ $dat->[$row][4] +]</td>
    <td>[+ $dat->[$row][5] +]</td>
    <td>[+ $dat->[$row][6] +]</td>
    <td ALIGN=Center><INPUT TYPE=Submit Name="TEdit[+$dat->[$row][2]+]"

I'm finding that if a record contains a field with a NULL value then
the whole record is not displayed.
Is there a way of turning off this behaviour?



This message (including any attachments) is intended solely for the addressee
named and may contain confidential  information. If you are not the intended 
recipient, please delete it and notify the sender. Views expressed in this 
message are those of the individual sender, and are not necessarily the views
of the NSW Department of Transport. The whole or parts of this e-mail may be 
subject to copyright of the Department or third parties. You should only 
re-transmit, distribute or use the material for commercial purposes if you are
authorised to do so.

			Visit us at:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message