Witam,
poraz pierwszy chciałabym użyć tablice asocjacyjna. Niestety mi cos nie wychodzi.
możecie mi pomoć i powiedzieć gdzie robie błąd?
$strzmce = $_GET['strzmce'];
$dostawca = $_GET['dostawca'];
$id = $_GET['id'];
$detal = $_GET['detal'];
$hurt = $_GET['hurt'];
$zakup_wspolczynnik = $_GET['zakup_wspolczynnik'];
echo "<form action=index.php?z=k&m=l&strona=zmianacen method=GET>"; $query = "SELECT * FROM ehi_produkty where id_dostawcy='$dostawca'";
echo('Wystapil blad: wykaz produktów<BR>'); }
$row11 = "$row[11]";
echo "<tr><td>$row[0] - ".$row[2
]; if ($row11 != '') {
if ($row11 != 'A') { echo "<b>($row[11])</b>"; } } <td><center>".number_format($row[4], 2, ',', '')." ".$row[9]."</td> <td><center><input type=text name=detal size=5> ".$row[9]."</td>";
if ($zakup_wspolczynnik == 'netto') { echo "<td><center>".number_format($row[7], 2, ',', '')." ".$row[9]."</td>"; } echo "<td><center><input type=text name=hurt size=5> ".$row[9]."</td></tr>"; echo "<input type=hidden name=id value=$row[0]>"; }
<input type=hidden name=strzmce value=zapisz>
<input type=hidden name=z value=k>
<input type=hidden name=m value=l>
<input type=hidden name=zakup_wspolczynnik value=$zakup_wspolczynnik>
<input type=hidden name=strona value=zmianacen>
<button type=submit>Dalej</button></form> ";
if ($strzmce == 'zapisz') {
for ($i=0;$i<$n; $i++)
echo $id[$i].' '. $detal[$i].' '. $hurt[$i].'<br>';