I am just learning how to write prepared mysqli statements in php. I have a question in regards to a query that does not have any user entered parameters such as:
Should I use a prepared statement or the traditional mysqli_query()?
If I use a prepared statement, do I just omit the mysqli_stmt_bin d_param() or should I set a piece of the query to a variable before the script starts?
Thanks for taking the time to read my questions!
Code:
SELECT * FROM table WHERE field IS NULL
If I use a prepared statement, do I just omit the mysqli_stmt_bin d_param() or should I set a piece of the query to a variable before the script starts?
Thanks for taking the time to read my questions!
Comment