Advertisement
rfv123

/questions/32447846/ - Alternate Control Syntax

Sep 7th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.22 KB | None | 0 0
  1. <?php
  2.   // Alternative control symtax - see: http://php.net/manual/en/control-structures.alternative-syntax.php
  3. ?>
  4. <tr >
  5.     <td colspan = '12' class='hiddenRow' >
  6.     <div class='accordian-body collapse' id = <?= 'r'.$i?>>
  7.     <table class='table table-condensed' style = 'border-collapse:collapse;' >
  8.  
  9.     <thead >
  10.     <tr >
  11.     <th >&nbsp;</th >
  12.     <th > Ticket Number </th >
  13.     <th >&nbsp;</th >
  14.     <th > Fine Amount </th >
  15.     <th >&nbsp;</th >
  16.     <th >&nbsp;</th >
  17.     </tr >
  18.     </thead >
  19.  
  20.     <tbody >
  21.     <?php while($data2 = mysqli_fetch_array($mysql2)): ?>
  22.         <?php $j++; ?>
  23.         <tr >
  24.                     <td >
  25.                         <button class='btn btn-default btn-xs accordion-toggle'
  26.                                 data - toggle = 'collapse' data - target = <?= '#r".$i."r".$j." ' ?>><span
  27.                                 class='glyphicon glyphicon-eye-open' ></span ></button >
  28.                     </td >
  29.                     <td ><?= $data2['ticket_number'] ?> </td >
  30.                     <td >&nbsp;</td >
  31.                     <td ><?= $data2['fine_amount'] ?></td >
  32.                     <td >&nbsp;</td >
  33.                     <td >&nbsp;</td >
  34.         </tr >
  35.      <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement