I've got a little bit of a problem when I try to run this code. I receive this error:Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given inMy problem is in the while st
How to get the last indexed id or last inserted record id?how can I retrieve the last row and use it to insert it into the other table? I tried $mysqli->insert_id; then binding but it doesn't work.
I have a website in core PHP and I get error like thisWarning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, string givenCode$query = "SELECT * FROM questions WHERE id='question' LIMIT