PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: Posting Code in the Forums to learn how to do it too.
an error is thrown : Call to a member function bind_param() on a non-object in yourFile.php on line 15.
What is it, which is causing error ?
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: Posting Code in the Forums to learn how to do it too.
I don't see it in your code but I'm going to guess $mysqli already exists since you're using it and its prepare() function. The error may have been because $stmt is FALSE and is not an object. Most probably because there's an error in your sql statement. You could check if this is the cause by putting this before the "$stmt->bind_param .. " line: