prepare($parsql); $durr -> bind_param("sii", $cim, $tip, $ar); if ($durr -> execute() == true) { echo "Sikeres adatbevitel"; } } else { if (isset($_POST["szures"])) { $felt = $_POST["szures"]; $sql = "SELECT cim, jegyar FROM film WHERE cim LIKE '%".$felt."%' ORDER BY cim "; $sqlparam = $conn -> prepare("SELECT cim, jegyar FROM film WHERE cim LIKE ? ORDER BY cim "); $sqlparam -> bind_param("s", $felt); $sqlparam -> execute(); // $result = $conn -> query($sql); $result = $sqlparam -> get_result(); if ($result -> num_rows > 0) { $i = 1; echo ""; while ($row = $result -> fetch_object()) { echo ""; } echo "
Ssz. Cím. Ár.
".$i++." ".$row -> cim." ".$row -> jegyar."
"; } } else { echo "Nincs adat"; } require_once("html.php"); $conn -> close(); } ?>