Pego el código, y al final pego el código de lo que me muestra esta consulta en particular.
Código:
<div style="width:150px; float:left;"> <table border="1" width="150"> <tr> <td width="50">EM</td> <td width="50">AE</td> <td width="50">TD</td> </tr> <?php $cons1 = "Select *, est.nombre as nombre_em from ambiental_fichas_sectores sec inner join ambiental_fichas_estaciones est on sec.id=est.id_sector where sec.id_ficha='2' order by est.nombre limit 0,17"; $rs1=mysql_query($cons1, $conexion); for ($i = 1; $i<= 18; $i++) { $reg1 = mysql_fetch_array($rs1); ?> <tr> <td><?php echo $reg1['nombre_em']; ?></td> <td> </td> <td> </td> </tr> <?php } ?> </table> </div> <div style="width:150px; float:left;"> <table border="1" width="150"> <tr> <td width="50">EM</td> <td width="50">AE</td> <td width="50">TD</td> </tr> <?php $cons1 = "Select *, est.nombre as nombre_em from ambiental_fichas_sectores sec inner join ambiental_fichas_estaciones est on sec.id=est.id_sector where sec.id_ficha='2' order by est.nombre limit 18,36"; $rs1=mysql_query($cons1, $conexion); for ($i = 1; $i<= 18; $i++) { $reg1 = mysql_fetch_array($rs1); ?> <tr> <td><?php echo $reg1['nombre_em']; ?></td> <td> </td> <td> </td> </tr> <?php } ?> </table> </div> <div style="width:150px; float:left;"> <table border="1" width="150"> <tr> <td width="50">EM</td> <td width="50">AE</td> <td width="50">TD</td> </tr> <?php $cons1 = "Select *, est.nombre as nombre_em from ambiental_fichas_sectores sec inner join ambiental_fichas_estaciones est on sec.id=est.id_sector where sec.id_ficha='2' order by est.nombre limit 37,55"; $rs1=mysql_query($cons1, $conexion); for ($i = 1; $i<= 18; $i++) { $reg1 = mysql_fetch_array($rs1); ?> <tr> <td><?php echo $reg1['nombre_em']; ?></td> <td> </td> <td> </td> </tr> <?php } ?> </table>
Código:
<div style="width:150px; float:left;"> <table border="1" width="150"> <tr> <td width="50">EM</td> <td width="50">AE</td> <td width="50">TD</td> </tr> <tr> <td>COC-1</td> <td> </td> <td> </td> </tr> <tr> <td>COC-10</td> <td> </td> <td> </td> </tr> <tr> <td>COC-11</td> <td> </td> <td> </td> </tr> <tr> <td>COC-12</td> <td> </td> <td> </td> </tr> <tr> <td>COC-13</td> <td> </td> <td> </td> </tr> <tr> <td>COC-14</td> <td> </td> <td> </td> </tr> <tr> <td>COC-15</td> <td> </td> <td> </td> </tr> <tr> <td>COC-16</td> <td> </td> <td> </td> </tr> <tr> <td>COC-17</td> <td> </td> <td> </td> </tr> <tr> <td>COC-18</td> <td> </td> <td> </td> </tr> <tr> <td>COC-19</td> <td> </td> <td> </td> </tr> <tr> <td>COC-2</td> <td> </td> <td> </td> </tr> <tr> <td>COC-20</td> <td> </td> <td> </td> </tr> <tr> <td>COC-21</td> <td> </td> <td> </td> </tr> <tr> <td>COC-22</td> <td> </td> <td> </td> </tr> <tr> <td>COC-23</td> <td> </td> <td> </td> </tr> <tr> <td>COC-24</td> <td> </td> <td> </td> </tr> <tr> <td></td> <td> </td> <td> </td> </tr> </table> </div> <div style="width:150px; float:left;"> <table border="1" width="150"> <tr> <td width="50">EM</td> <td width="50">AE</td> <td width="50">TD</td> </tr> <tr> <td>COC-26</td> <td> </td> <td> </td> </tr> <tr> <td>COC-27</td> <td> </td> <td> </td> </tr> <tr> <td>COC-28</td> <td> </td> <td> </td> </tr> <tr> <td>COC-29</td> <td> </td> <td> </td> </tr> <tr> <td>COC-3</td> <td> </td> <td> </td> </tr> <tr> <td>COC-30</td> <td> </td> <td> </td> </tr> <tr> <td>COC-31</td> <td> </td> <td> </td> </tr> <tr> <td>COC-32</td> <td> </td> <td> </td> </tr> <tr> <td>COC-33</td> <td> </td> <td> </td> </tr> <tr> <td>COC-34</td> <td> </td> <td> </td> </tr> <tr> <td>COC-35</td> <td> </td> <td> </td> </tr> <tr> <td>COC-36</td> <td> </td> <td> </td> </tr> <tr> <td>COC-37</td> <td> </td> <td> </td> </tr> <tr> <td>COC-38</td> <td> </td> <td> </td> </tr> <tr> <td>COC-39</td> <td> </td> <td> </td> </tr> <tr> <td>COC-4</td> <td> </td> <td> </td> </tr> <tr> <td>COC-40</td> <td> </td> <td> </td> </tr> <tr> <td>COC-41</td> <td> </td> <td> </td> </tr> </table> </div> <div style="width:150px; float:left;"> <table border="1" width="150"> <tr> <td width="50">EM</td> <td width="50">AE</td> <td width="50">TD</td> </tr> <tr> <td>COC-43</td> <td> </td> <td> </td> </tr> <tr> <td>COC-44</td> <td> </td> <td> </td> </tr> <tr> <td>COC-45</td> <td> </td> <td> </td> </tr> <tr> <td>COC-46</td> <td> </td> <td> </td> </tr> <tr> <td>COC-47</td> <td> </td> <td> </td> </tr> <tr> <td>COC-48</td> <td> </td> <td> </td> </tr> <tr> <td>COC-49</td> <td> </td> <td> </td> </tr> <tr> <td>COC-5</td> <td> </td> <td> </td> </tr> <tr> <td>COC-50</td> <td> </td> <td> </td> </tr> <tr> <td>COC-51</td> <td> </td> <td> </td> </tr> <tr> <td>COC-52</td> <td> </td> <td> </td> </tr> <tr> <td>COC-53</td> <td> </td> <td> </td> </tr> <tr> <td>COC-54</td> <td> </td> <td> </td> </tr> <tr> <td>COC-55</td> <td> </td> <td> </td> </tr> <tr> <td>COC-56</td> <td> </td> <td> </td> </tr> <tr> <td>COC-57</td> <td> </td> <td> </td> </tr> <tr> <td>COC-6</td> <td> </td> <td> </td> </tr> <tr> <td>COC-7</td> <td> </td> <td> </td> </tr> </table> </div>