Categories
Resources Tips Tutorials

Making your videos responsive to screen resolution with JQuery

This is a nice piece of code I found in Stack Overflow, but I love the solution posted by Darwin in October 12 2012 and I tweaked to fit my needs and here is my code: function adjustVideoRatioToParent(arr){ var element = (arr.e === undefined)? jQuery(‘iframe[src*=”youtube”]’) : jQuery(arr.e); //set element or elements var eParent = element.parent(); […]

Categories
Tips Tutorials

Handling a Keyword Search with PHP/MySQL (MATCH/AGAINST MySQL Function)

For the longest time I used the MySQL ‘LIKE’ statement style for searching by keywords, which it is probably the most reliable and fastest option. But today I’m going to talk about another option you have to create a more effective keyword search and get the result from MySQL order by keywords relevance. For this […]

Categories
Resources

xTags Class

This is my first class and I hope you enjoy it. With this class you can dynamically create html and xml tags using PHP. To see how to use it click here. To download click here. To see a sample of the code click here.