Welcome Guest, Not a member yet? Register   Sign In
Parser and if statement
#6

I don't see why it shouldn't work. Are you sure the field is called active?

In my opinion, you shouldn't use the parsing solution. Instead, send the data to your view and iterate it from there:

PHP Code:
    <tbody>
 
                      <?php foreach($entries as $entry): ?>
                           <tr>
                           <td><?php echo $entry->id_pro ?></td>
                           <td><?php echo $entry->name ?></td>
                           <td><?php echo $entry->licensegen ?></td>
                           <td><?php echo $entry->version ?></td>
                           <td><?php echo $entry->expiration ?></td>
                           <td><?php echo $entry->options ?></td>
                           <td><?php echo $entry->username ?></td>
               <?php if($entry->active == 1): ?>
                               <td>Active</td>
               <?php else: ?>
                   <td>Disabled</td>
               <?php endif; ?>
                           </tr>
                        <?php endforeach; ?> 
    </tbody> 
Reply


Messages In This Thread
Parser and if statement - by sasatozovic - 04-15-2016, 08:22 AM
RE: Parser and if statement - by gxgpet - 04-15-2016, 08:32 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 08:41 AM
RE: Parser and if statement - by gxgpet - 04-15-2016, 08:46 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 08:53 AM
RE: Parser and if statement - by gxgpet - 04-15-2016, 09:04 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 09:10 AM
RE: Parser and if statement - by PaulD - 04-15-2016, 09:52 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 10:16 AM
RE: Parser and if statement - by albertleao - 04-15-2016, 11:36 AM
RE: Parser and if statement - by dmyers - 04-15-2016, 11:03 AM
RE: Parser and if statement - by ivantcholakov - 04-15-2016, 11:35 AM
RE: Parser and if statement - by InsiteFX - 04-15-2016, 06:41 PM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 04:22 AM
RE: Parser and if statement - by kilishan - 04-15-2016, 07:25 PM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 04:07 AM
RE: Parser and if statement - by Tpojka - 04-16-2016, 06:45 AM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 07:08 AM
RE: Parser and if statement - by InsiteFX - 04-16-2016, 10:53 AM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 01:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB