table in different files

  • From: "bondvt04" < >
  • To:
  • Subject: table in different files
  • Date: Sun, 25 Nov 2012 06:29:18 -0500

Hi! Without delay, my use case:

Code:
// fileA.php

<?php if(count($arr) > 0) {?>
    <table>

        <tr>
            <th>
                id
            </th>
            <th>
                title
            </th>
        </tr>

        <?php foreach($arr as $item) {?>
            <?php include(fileB.php);?>
        <?php }?>

    </table>
<?php }?>

// fileB.php
<tr>
    <td>
        <?php echo $item['id'];?>
    </td>
    <td>
        <?php echo $item['title'];?>
    </td>
</tr>



Netbeans in fileB.php highlights in red my <tr> and <td> tags and that's why 
i can't, for example, use hot keys like Ctr+[. Of course, i don't want 
disable all validation. What can i do? [Question]






table in different files

bondvt04 11/25/2012

Re: table in different files

Paolo Scarabelli 11/26/2012

table in different files

bondvt04 11/26/2012

Project Features

About this Project

PHP was started in November 2009, is owned by Petr Jiricka, and has 235 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close