MySQL character set, for different languages. Remove the question marks.

Any article I have read online  has this long winded 2 page “report” on how to get different languages to show up on a webpage in mysql well I am not going to do that to you.  Just run this sql statement at the beginning of your php script to display your different languages.  As always make [...]

Fix jcrop plugin keyboard support to work with the newest version of jQuery 1.3, 1.4

Today I struggling to get the keyboard support for jQuery jcrop plugin on jQuery version 1.4 on Google Chrome & Safari.    Its actually quite an easy fix. All you need to do is get the unpacked version of jCrop and add the keydown(parseKey) line to this part of the code… keypress is for firefox [...]

UK (dd/mm/yy) dates in jQuery Datepicker

I was stumped on this problem today trying to get the following code to format my date to match UK’s standard date format: $(‘.selector’).datepicker({ altFormat: ‘yy-mm-dd’ });] However that didn’t work. If you look at the following page on jQuery docs you will find that UK’s date format is not one jQuery’s standards. But after [...]

The mysterious visitor : /bc/123kah.php

/bc/123kah.php is an Adware called Adware:W32/AdRotator.Gen for some reason it posts to random domains as my domain is not the only one to have the file /bc/123kah.php show up in their web stats.

Automatically create a PNG sprite with PHP & GD using 248 country flags

So I have been messing with creating sprites in PHP’s GD, and as it turns out its quite simple.  So I set out to copy 245 flag PNG files over to one png and print out the CSS background positions at the same time…. The country sprite flag Demo is right here Demo of the sprite [...]

Converting MySQL timestamp using Date() and php

I had the hardest time today wondering why I couldn’t convert a timestamp from MySQL to PHP. You would think PHP would have a function for that. The easiest method I found to make this happen is convert your SQL timestamp to UNIX time first.

Internet Explorer (IE); people, there is a better web browser out there I promise.

If you are using Internet Explorer right now, this is the article for you! If you don’t know IE 6 came out in 2001 and its still being used by an estimated 32.28% of Internet users that’s more than Internet Explorer 7!

Stop Google translate from translating a portion of your page or a whole page

In some cases you will not want to translate a certain part of your webpage, for instant Google translate was showing their javascript popup tooltip code with in my javascript code syntax highlighter script (javascript also) I disabled it by adding the class….

Opera 10 browser fails loading json in jQuery

I was having an odd issue with Opera 10 browser for about 10 hours, when trying to request json using jquery ajax call and not returning anything!   It was the weirdest thing.  My code was working in all major browsers to include Google Chrome, IE 8, Firefox, and Safari. The reason for the issue was because my json php script had a few white spaces at the top of the output and opera doesn’t like it!  One way around this issue is to change your dataType to ‘text’  instead of json and use the older eval() method to evaluate your json!  

Setting up a “virtual host” on WampServer

Virtual hosts are awesome when it comes to working with multiple websites. Allowing you to separate your website projects up int folders and still keep your root directory structure for each project! It also has a many other advantages you may already be aware of this tutorial shows you how to setup up a virtual host on WampServer and a few other helpful tips.