var id; id = "<?php echo "$ID"; ?>"; for (var i = 1; i <= id; i++) { <?php $Vst = ($Vst + 1); $query = "SELECT t1.MAC, t1.IP, t1.NAME, t2.vendor, t2.model, t1.mon, t3.see FROM `host` AS t1, `devices` AS t2, `monitoring` AS t3 WHERE t1.MAC = t2.selfmac AND t1.IP = t3.ip AND t1.ID = '$Vst'"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) extract($row); if ($see == 0) { $See = "Yes"; } if ($see == 1) { $See = "No"; } ?> var model; model = "<?php echo "$model"; ?>"; var mac; mac = "<?php echo "$MAC"; ?>"; var ip; ip = "<?php echo "$IP"; ?>"; var see; see = "<?php echo "$See"; ?>"; var name; name = "<?php echo "$NAME"; ?>"; var tr = $("<tr>" + "<td>" + model + "</td>" + "<td>" + mac + "</td>" + "<td>" + ip + "</td>" + "<td>" + see + "</td>" + "<td>" + i + "</td>" + "</tr>"); $('#demotable1 tbody').append(tr); }Переменная $Vst обьявлена в значении 0, но не увеличивает свое значение, подскажите в чем может быть причина?
|