D
D
davc2018-05-25 15:52:19
PHP
davc, 2018-05-25 15:52:19

How to get multiple fields via mysqli_prepare in php?

hello i have this code

$posvivodi = mysqli_prepare($link, "SELECT * FROM `dvvod` WHERE `nik` = ? AND `password` = ? ORDER BY `data` DESC");
mysqli_stmt_bind_param($posvivodi, "ss", $kookmail, $kookpass);
mysqli_stmt_execute($posvivodi);


$ivivodfetch = mysqli_fetch_assoc(mysqli_stmt_get_result($posvivodi));
$ivivodfetch_1 = mysqli_fetch_assoc(mysqli_stmt_get_result($posvivodi));
$ivivodfetch_2 = mysqli_fetch_assoc(mysqli_stmt_get_result($posvivodi));
$ivivodfetch_3 = mysqli_fetch_assoc(mysqli_stmt_get_result($posvivodi));
$ivivodfetch_4 = mysqli_fetch_assoc(mysqli_stmt_get_result($posvivodi));

gives me an error when receiving data, when I do all this through mysqli_query everything works fine, what could it be?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question