eso que comento con este codigo:
Código PHP:
Ver originalecho '<table class="table table-bordered table-striped datatable" id="table-2">';
echo '<thead>';
echo '<tr>';
echo '<th>';
echo '<div class="checkbox checkbox-replace">';
echo '<input type="checkbox" id="chk-1">';
echo '</div>';
echo '</th>';
echo '<th>Contrato</th>';
echo '<th>Cliente</th>';
echo '<th>Cupo</th>';
echo '<th>Matricula</th>';
echo '<th>DNI PASAPORTE</th>';
echo '<th>Matricula</th>';
echo '<th>Nombre</th>';
echo '</tr>';
echo '</thead>';
echo '<tbody>';
echo '<tr>';
echo '<td>';
echo '<div class="checkbox checkbox-replace">';
echo '<input type="checkbox" id="chk-1">';
echo '</div>';
echo '</td>';
echo '<td>Randy S. Smith</td>';
echo '<td>8.7</td>';
echo '<td>Social and human service</td>';
echo '<td>';
echo '<a href="#" class="btn btn-default btn-sm btn-icon icon-left">';
echo '<i class="entypo-pencil"></i>';
echo 'Edit';
echo '</a>';
echo '<a href="#" class="btn btn-danger btn-sm btn-icon icon-left">';
echo '<i class="entypo-cancel"></i>';
echo 'Delete';
echo '</a>';
echo '<a href="#" class="btn btn-info btn-sm btn-icon icon-left">';
echo '<i class="entypo-info"></i>';
echo 'Profile';
echo '</a>';
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>';
echo '<div class="checkbox checkbox-replace">';
echo '<input type="checkbox" id="chk-1">';
echo '</div>';
echo '</td>';
Melo pinta si
NumCliente: 47564
3 | 47564 | 80317048-10 | 4764 AFR | 39654225L | 2015-11-04 | 09:00:00.0000000 | Confirmada | 126
4 | 47564 | 80317048-10 | 4764 AFR | 39654225L | 2015-11-05 | 09:00:00.0000000 | Confirmada | 126
4 | 47564 | 80317048-11 | 4764 AFR | 39654225L | 2015-11-05 | 09:00:00.0000000 | Confirmada | 126
Respuesta en 0 segundos
Contrato Cliente Cupo Matricula DNI PASAPORTE Matricula Nombre
Randy S. Smith 8.7 Social and human service EditDeleteProfile
entonces pienso tengo que montar las tablas fuera del php para que me lo ejecute antes pero me doy cuenta que fuera del php como aun no ha leido el foreach , no puedo montar el resultado dentro de la tsabla
Espero puedas ayudarme
GRacias