Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter felixkruip

    (@felixkruip)

    Thank you for your quick response.

        <table>
          <thead><tr><th>Files</th></tr></thead>
          <tbody>';
        if(!empty($submitted['file-upload'])){
          $style = 'style=[qtm]background-color:#e3e3e3[qtm]';
          foreach($submitted['file-upload'] as $idx=>$file[0]){
          $row=1;
            $tag_replace .='  <tr><td '.($row%2==0?$style:'').'>'.$file[0].'</td></tr>'.PHP_EOL;
            $row++;
          }
        }
        $tag_replace .='
          </tbody>
        </table>

    I’m trying to understand it as I’m still a beginner in PHP. Would something like this work?

    Will definitely give a 5-star review!

Viewing 1 replies (of 1 total)