Sayenizde çözdüm teşekkür ediyorum. Son hali böyle oldu
<?
$cihaz = $_POST["cihaz"];
$sayi=1;
for($x=1; $x<=254; $x++){
echo "
<tr class='odd'>
<th scope='row' id='r97'>$sayi</th>
<td>192.168.1.$x</td>
<td></td>
</tr>
</tbody>
";
if($x%$cihaz==0){
echo "
<thead>
<tr>
<th scope='col'>Nokta</th>
<th scope='col'>Ip Adresi</th>
<th scope='col'>Cihaz İsmi</th>
</tr>
</thead>";
$sayi++;
}
}
?>