PHP MySQL Inserting Records Reference

First up there are three examples for inserting records into a MySQL database, one for each of the three following techniques:

  • Using mysqli in a procedural manner.
  • Using mysqli in an object-oriented fashion.
  • Using PDO.

After that there is an example of the same three approaches, but with the addition of using prepared statements for improved security and efficiency.

Continue reading “PHP MySQL Inserting Records Reference”

The Definitive Guide to Object-Oriented JavaScript

James Shore has a truly excellent video explaining Javascript Objects and the topic of inheritance in detail at http://www.objectplayground.com/. It covers a few other things and is probably one of the very best videos I’ve seen on the subject. I highly recommend it to anyone who wants to further their knowledge of Javascript.

Here’s a few screenshots:

Javascript Inheritance Diagram

I tried looking for a clear diagram that would show visually how objects in Javascript are created and inherited via the prototype chain. Its probably the single most confusing aspect of Javascript for developers, even seasoned ones at that. It took me a while to get it intellectually but I still wanted a simple visualisation of it because I was convinced it couldn’t be as complicated as it seems. Turns out that its not, once you see a decent diagram.

Continue reading “Javascript Inheritance Diagram”