Archives for: "April 2016"

Variable number of parameters on a prepared statement in PHP

Sometimes, you need to use a different number of parameters for a prepared statement. The call_user_func_array function allows you to call bind_param with a varying number of parameters. PHP// Start by validating your data$so… more »

What Branch am I on Anyway?

Often during web development the code is switching between different branches and it can be difficult to let everyone on a small team know which branch is in use. Adding this line to a PHP script and using CSS to make it easy to see can save time. PHP… more »