-
Notifications
You must be signed in to change notification settings - Fork 0
/
kazna-opt.php
29 lines (28 loc) · 1.03 KB
/
kazna-opt.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
require("veza.php");
echo "<td id=sop>VOZILO</td><td><select name='vzlopt' onchange='kaznatab()'>";
$pojm="SELECT * FROM vozila ORDER BY IDVO";
$ishod=mysqli_query($con,$pojm);
$brrd=mysqli_num_rows($ishod);
echo "<option value=0000>SVA vOZILA</option>";
if ($brrd>0) {
while($row= mysqli_fetch_array($ishod)){
echo "<option value='".$row["IDVO"]."'>".$row["REGBR"]." - ".$row["MAVO"]."</option>";
}
}
echo "</select></td>";
echo "<td id=sop>VOZAČI</td><td><select name='vzcopt' onchange='kaznatab()'>";
$pojm="SELECT * FROM vozaci ORDER BY IDVO";
$ishod=mysqli_query($con,$pojm);
$brrd=mysqli_num_rows($ishod);
echo "<option value=0000>SVI VOZACI</option>";
if ($brrd>0) {
while($row= mysqli_fetch_array($ishod)){
echo "<option value='".$row["IDVO"]."'>".$row["IMPR"]."</option>";
}
}
echo "</select></td>";
echo "<td id=bltb></td><td id=bltb></td><td id=bltb></td><td id=bltb></td>";
echo "<td id=bltb></td><td id=bltb></td><td id=bltb></td>";
mysqli_close($con);
?>