Ciao, ho fatto così ma non mi esce per niente bene....non so a questo punto se ho capito bene....
Ho tolto le stringhe sql per non inserire troppe cose
codice HTML:
<table width="900" border="0" cellpadding="3" class="TableClienteImm" >
<thead>
<tr>
<th colspan="6"><img src="images/invoices.gif" alt="" width="16" height="16" /> Dati Immobile</th>
</tr>
</thead>
<?
$result5 = mysql_query($SQL5) or die("Couldn?t execute query.".mysql_error());
$result9 = mysql_query($SQL9) or die("Couldn?t execute query.".mysql_error());
$resultcount = mysql_query($SQLcount) or die("Couldn?t execute query.".mysql_error());
$row_count = mysql_fetch_array($resultcount);
$count = $row_count['count'];
if (mysql_num_rows($result5) > 0) {
echo "<ul>";
while($row5 = mysql_fetch_array($result5,MYSQL_ASSOC)) {
while($row9 = mysql_fetch_array($result9,MYSQL_ASSOC {
if ($row5["IdAzioniImmobili"]==$row9["IdAzioniImmobili"])
{ $sel_in = " CHECKED =\"CHECKED\"";} }
?>
<tr>
<td colspan="x" rowspan="y">
<div style="height:200px; overflow:auto">
<td><label for="imp_ctu">Imp Ctu</label></td>
<td><input value="<?=number_format($row5["imp_ctu"],0,",",".");?>" name="imp_ctu[]" type="text" class="" id="imp_ctu[]" size="11" maxlength="10" /></td>
<td><label for="data_asta">Data Asta</label></td>
<td><input value="<?=$row["data_asta"];?>" name="data_asta[]" type="text" class="date-pick dateITA" id="data_asta[]" size="11" maxlength="10" /></td>
<td><label for="pb_asta">PB Asta</label></td>
<td><input value="<?=number_format($row5["pb_asta"],0,",",".");?>" name="pb_asta[]" type="text" class="" id="pb_asta[]" size="11" maxlength="10" /></td>
<td><label for="data_agg">Data Agg</label></td>
<td><input value="<?=$row["data_agg"];?>" name="data_agg[]" type="text" class="date-pick dateITA" id="data_agg[]" size="11" maxlength="10" /></td>
<td><label for="pb_agg">PB Agg</label></td>
<td><input value="<?=number_format($row5["pb_agg"],0,",",".");?>" name="pb_agg[]" type="text" class="" id="pb_agg[]" size="11" maxlength="10" /></td>
<td><input type="checkbox" name="collega[]" id="collega[]" <?=$sel_in;?> value="<?=$row5["id_cli_imm"];?>" /><font color="red">Tipo Imm: </font><?=$row5["ds_tipologia"];?> <font size="3" color="red"> - Id Imm: </font><?=$row5["id_cli_imm"];?><font size="3" color="red"> - Valore: </font><?=number_format((float)$row5["valutazione"], 2, ',', '.');?> <font size="3" color="red">- Fg: </font><?=$row5["foglio"];?><font size="3" color="red"> - P.lla:</font><?=$row5["particella"];?><font size="3" color="red"> - Sub:</font><?=$row5["sub"];?><font size="3" color="red"> - Comune:</font><?=$row5["ds_comune"];?><font size="3" color="red"> - Indirizzo:</font><?=$row5["indirizzo"];?></td> </div>
</td>
</tr>
<? $sel_in = " ";
if ($count > 1) { mysql_data_seek($result9,0);}
}
echo "<ul>";
}
?>
</table>