Quick Tip: Resolving conflicting problems between jQuery and MooTools or any other Javascript library Comments (0)
by Wez Pyke - December 2, 2009 in Text Tutorials,jQuery

Recently I wrote quite a huge chunk of jQuery for a website and it worked fine. A few days later I checked back to make sure that everything was working correctly after modifying a few things, but to my surprise none of the jQuery code worked. The problem was that I had added some Mootools code, the Mootools code worked fine but the jQuery code did not. I done some searching and found that the two libraries were conflicting and all it takes is 2 extra lines of code to prevent this from happening.

(more...)

PHP One Line IF Statement Comments (6)
by Wez Pyke - August 27, 2008 in PHP,Text Tutorials

I'm sure if you've been programming for a few years that you've come across when you need to check if something equals something than do something else a few times.

Well the best way to do this is like so.

Say for example we have a variable called $num and the value of it is 5.
(more...)