Code Snippets Submitted by Jhon Jhon


I was trying to pass an array through SWFObject flashvars and realized it can't be done. Instead you need to use a string for your array, pass it into Flash , then convert it to an array using the actionscript "split" function.

I was trying to pass an array through SWFObject flashvars and realized it can't be done. Instead you need to use a string for your array, pass it into Flash , then convert it to an array using the actionscript "split" function.

Here are the Dos Batch code to Convert Video for Andriod Phone .

11 December, 2012   

MySQL Country Table With Abbreviations and Names

09 February, 2013   

Very simple small code to generate random password

CSS code to create resizable images With CSS

24 June, 2015   

Create a table with the results from a SELECT statement.

This little function comes in handy. There's nothing worse than seeing a site with a copyright out of date.

20 October, 2012   

Create dynamic variables from a query or a list.

Open up a text editor, copy & paste the code below. Save the file as: "commandlinefu.py" and exit the editor.

05 August, 2013   

CSS code for Curly Quotes

06 March, 2013   

There are two methods for creating separate styles depending on the media type. both example given below:

02 August, 2015   

Useful and simple css navigation menu bar.

The code includes the CSS which you can add to your stylesheet and please note a class has been added to the table tag.

27 March, 2013   

CSS code for table-layout property using an example code in html page.

PHP code for current Month/Day/Date with HTML colors & formatting.

27 January, 2014   

Extracts the month from a specified date.

This example has an ordinal suffix: Sunday 15th July

Script to query db growth history using backup history this is accurate as long as there's no compression involved.

SQL code example to delete WordPress post revision from DB