[Solved] How do i format this project


If you want to show the complete data in first row you can do this:

    $i = 0;
        while($job = $result->fetch_object()){ 

    if( $i == 0 ) {
        echo '<tr>';    
        echo '<td>' . $job->JobDate .'</td>';
        echo '<td>' . $job->ReportTime.'</td>';
        echo '<td>' .$job->StartTime.'</td>';
        echo '<td>'.$job->CustomerName.'</td>';
        echo '<td>'.$job->EmployeeName.'</td>';
        echo '<td>'.$job->EquipmentNumber.'</td>';
        echo '<td>'.$job->JobDescription.'</td>';
        echo '<td>'.$job->JobNotes.'</td>';     
        echo '</tr>';

    } else {
            echo '<tr>';    
        echo '<td></td>';
        echo '<td></td>';
        echo '<td></td>';
        echo '<td></td>';
        echo '<td>' . $job->EmployeeName . '</td>';
        echo '<td>' . $job->EquipmentNumber .'</td>';
        echo '<td></td>';
        echo '<td></td>';     
        echo '</tr>';
    }
    $i++;
        }

5

solved How do i format this project