PHP errors -> Warning: mysqli_stmt::execute(): Couldn't fetch mysqli_stmt | Warning: mysqli_stmt::close()

后端 未结 2 618
我在风中等你
我在风中等你 2020-12-20 15:31

I keep getting this error while trying to modify some tables. Here\'s my code:

/**  <- line 320
 *
 * @param array $guests_array
 * @param array $ticke         


        
相关标签:
2条回答
  • 2020-12-20 16:16

    I don't think it will work this way. When you close the statement (e.g. $menu_stmt->close();) you also deallocate the statement handle. So the second time through the loop you don't have the prepared statements available to work with anymore.

    Try closing the statements after the loop has finished executing.

    0 讨论(0)
  • 2020-12-20 16:21

    usually this error come when you try to access a statement that has been closed

    $stmt->close(); 
    $stmt->num_rows;
    
    0 讨论(0)
提交回复
热议问题