1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <table>
<?php
$sql5="SELECT * FROM T_vic, T_docFourni, T_document WHERE T_vic.idref=$var and T_docFourni.idref=$var and T_document.iddoc=T_docFourni.iddoc";
$requete5 = odbc_do($odbc,$sql5) or die( odbc_error()); // besoin de la variable
while($tab = odbc_fetch_array($requete5))
{
echo $tab['iddoc'];
while ($tabdoc = odbc_fetch_array($requete6))
{
?>
<tr>
<td><input type="checkbox" name="selectdoc[<?php echo $tabdoc['iddoc'] ;?>]" value="<?php echo $tabdoc['iddoc'] ;?>"
<?php if ($tabdoc['iddoc'] == $tab['iddoc']) { ?>checked="checked"<?php } else { ?><?php }?>></td>
<td><?php echo $tabdoc['libeldoc']; ?></td>
</tr>
<?php }
}?>
</table> |
Partager