Getting multiple rows with prepared statement

后端 未结 3 1817
梦毁少年i
梦毁少年i 2021-01-05 18:35

I\'m quite new to prepared statements and am not sure I am doing this right.

Here is what I try:

$currgame = 310791;

$sql = \"SELECT fk_player_id, p         


        
3条回答
  •  独厮守ぢ
    2021-01-05 18:52

    while (mysqli_stmt_fetch($stmt)) {
            printf ("%s (%s)\n", $name, $code);
        }
    

    This might help you:

    http://php.net/manual/en/mysqli-stmt.fetch.php

提交回复
热议问题