Mysqli examples
Related articles:
- Mysqli tutorial (how to use it properly)
- How to report errors in mysqli
- How to connect properly using mysqli
- Why mysqli prepared statemens are so hard to use?
- Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given.
- How to check whether a value exists in a database using mysqli prepared statements
- Mysqli helper function
- Authenticating a user using mysqli and password_verify()
- How to get the number rows that have been inserted, changed or skipped
- Mysqli's features you probably would like to know about
- How to run INSERT query using Mysqli
- How to use mysqli properly
Comments:
Thank you for your quick response. I did not receive an error. Just no output (verified through dev tools). When I replaced the '?' with an actual parameter still nothing. I then took out the prepared statement and tried a standard query and the output was perfect. It seems to be something in the way the prepared statement is looking at the "with recursive" query. Thank you.
Reply:
Well, the response was not that quick, I have to admit, but I'll try my best.
As a rule, there is no difference for a prepared statement which query to run, but without the error message it is really poking in the dark.
Please refer to the following article in order to make sure you can see the error occurred: https://phpdelusions.net/articles/error_reporting
Hello. Your tutorial, examples, and code are extremely well put together and have worked for me every time! Thank you. I am having one problem and that has to do with a "with recursive" query. I cannot seem to make that work. Here is my code:
Reply:
Hello Neil!
What error does it show?