This third part of explaining how to use PHP & MySQLi was inspired by ‘abr4xas’ who commented on part 2 of this tutorial. He/she asked how they would go about safely inserting data from the $_POST superglobal into one of their MySQLi queries. So here is how to do exactly that. Prepared Statements One of the best ways to use […]
As promised here is the second part of building our Shopping List Application with the excellent AngularJS the JavaScript MVW framework. In this final part we are going to look at how to extend our application so that it can receive data (via JSON) from a REST based application to populate our shopping list with items. This is as opposed […]
Today I thought I’d give you one of my famous developers tips. All right, so they aren’t famous. Yet! I’m sure, if you are a PHP developer, you have created a loop many a time. They are useful for all sorts of things, including creating lists. Let’s take a common one. Creating a comma separated list. Does this look familiar? […]
Today we are going to look at how to write a WordPress plugin using Object Oriented Programming techniques. What Is OOP? Writing a plugin using OOP is basically writing your plugin as a PHP class. This can sound a little daunting at first because of the different way you have to handle functions to actions/filters. Here I’m hopefully going to […]
I originally wrote a post about 2 year ago explaining how to store multiple values in a single MySQL row. Now I have more experience with PHP/MySQL I have decided to revisit this topic to clear up any confusion about the method that should be used.
It’s always useful to run speed tests on your scripts to check how fast they are running, and so that you can then measure any improvements when you are optimizing scripts. Here is how I do it, plus a few tips.
Sanitizing data is a very important part of any server side scripting language, and it’s no different for PHP. So here is one simple way of sanitizing data using the dreaded REGEX.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Recent Comments