mysqli::query() expects parameter 1 to be string, object given
问题 I had saved the required steps for a parameterized string match query that outputs the subsequent rows. I had lost my files when transferring to a faulty drive. So... I'm trying to mash things together and this isn't working. $stmt = $link->prepare("SELECT id,entry,date from table WHERE string=? ORDER by Id DESC"); $stmt->bind_param('s',$string); $stmt->execute(); $stmt->bind_result($id_db,$entry_db,$date_db); if (($result = $link->query($stmt)) { while ($row = $result->fetch_row()){ } } I