query($sql); if ($result->num_rows > 0){ /* while ($row = $result->fetch_assoc()){ echo $row["cim"]."
"; } */ echo " "; $counter = 1; while ($row = $result->fetch_object()){ echo "". "". ""; $counter++; } echo "
Ssz. Cím Ár
".$counter."".$row->cim."".$row->jegyar."Ft
"; } else { echo "Nincs adat"; } } ?> Document close(); ?>