PHP 5.5.0 compatibility

Hi Mike.

As you can see, i just replaced all mysql_* functions by mysqli_* ones, because mysql_* functions are deprecated since PHP 5.5.0. I use this updated version in my project, inserting and selecting is working fine.