Printable View
The inp is an input box. What I'm looking for is to not have to write the if login statement twice .... I tried to bring it together in one string but the inp box is still being displayed when it's not suppose too. any help would be great. PHP Code: <tr><td> <?php if (login::$arre_company == 'APS') echo lookup_link('* Trainer', 'aps_trainer', 'id&first&last');?></td> <td><?php if (login::$arre_company == 'APS') inp('id')?></td> </td> </tr>
<tr><td> <?php if (login::$arre_company == 'APS') echo lookup_link('* Trainer', 'aps_trainer', 'id&first&last');?></td> <td><?php if (login::$arre_company == 'APS') inp('id')?></td> </td> </tr>
PHP Code: <?php if (login::$arre_company == 'APS') { echo lookup_link('* Trainer', 'aps_trainer', 'id&first&last');} { echo inp('id'); } ?> So i guess i just need to figure out how to wrap the html <tr> and <td> inside this script.... i need one row and two td's
<?php if (login::$arre_company == 'APS') { echo lookup_link('* Trainer', 'aps_trainer', 'id&first&last');} { echo inp('id'); } ?>