Increase your concentration and productivity by beating noise with more noise!

“Working from a public space involves dealing with noise levels that are for me, entirely counterproductive.” Getting distracted by noise while programming?  Suffering from not being able to concentrate whilst developing and being interrupted by annoying noises? “What about listening to a white noise app?” You can beat that annoying noise with white noise, get […]

MySQL phpMyAdmin Tutorial, creating tables and joining tables together

Check out my first video tutorial on YouTube. I’m demonstrating MySQL phpMyAdmin, to get you started creating a database, creating and populating two MySQL tables and a simple SELECT statement showing how to join the two tables together. The text size does look a little small, so the next video will be zoomed in to […]

How to protect your PHP source code with encryption?

Worried about giving away your PHP source code? Want to protect your code when delivering it to a clients hosting when it’s not paid for yet? I know as this has happened to me. I found a delivery of PHP code for sign off encrypted, I hadn’t seen that before. When we asked the company […]

If you are using file_get_contents you might want to check out PHP Simple HTML DOM Parser

PHP Simple HTML DOM Parser is a great tool to process HTML from remote sites.  The HTML is returned from the library. So that you can then search and iterate through it, this is great for scraping sites.  I didn’t write the code, but you can download it here and find some simple documentation: http://simplehtmldom.sourceforge.net/ […]

New to PHP and need some help with errors?

Wondering what’s going on with your variables? Not seeing what you are expecting? If you are a newbie learning PHP, one of the most useful functions to know is var_dump(). It dumps the contents of a variable, so you can see it in your web browser, it’s simple to use for example: var_dump($my_variable); Then you […]

How to join three MySQL database tables together in a simple SELECT statement

Following on from my post of how to join two MySQL tables together, adding a third table is just as easy, but if you need an example this one extends the previous post by adding a third table. For example I have a table of products, table of product categories and table of product suppliers, […]

How to join two MySQL database tables together in a simple SELECT statement

How to join two MySQL database tables together in a simple SELECT statement? For example I have a table of products and a table of product categories, how to return the category description of each product? Products ———– id category_id product_name Categories ————- id description A. In it’s simplest form you would join two tables […]