Code Snippets Submitted by David Villa


An example PHP function return a value, use the return statement.

07 January, 2012   

ASP code example to create an Array

13 October, 2013   

To create 'examples' database on your MySQL server you should run the following script

19 May, 2012   

Example code to create CSV from MySQL

16 March, 2014   

How to create mysql table using php. The php script as follows as:

02 August, 2012   

An example of a horizontal CSS menu

29 August, 2011   

An example of Cross-Browser Min Height

24 November, 2011   

Advanced background example by CSS

02 August, 2012   

CSS Clay Bricks Menu by Dynamic Drive

13 December, 2012   

A variety of snazzy CSS typography effects.

19 February, 2013   

A small function to find the current URL of the page

15 January, 2014   

It will fetch and process every record in a cursor.

15 September, 2012   

This will perform the action of deleting many files.

It's an unfortunate necessity that you need to write different code for windows sometimes or at the very least load different libraries since there is no fork(), etc. This is how you can tell.

09 November, 2013   

Use this snippet to determine the size of an open window. Can be used in many different situations, e.g., for setting the size of a div.

CSS code example for Diagonal Graph Paper Gradient

13 December, 2012   

CSS trick to display the URL from the href attribute after each link

23 February, 2012   

XML Code to display XML data in an HTML table

13 November, 2014   

Here is a form that asks for Name and Email address. When the form is submitted the Email address is verified first. If you put in a Name and a correct Email address, an anchor element is displayed allowing the user to download the file, two cookies are created storing the Name and Email address. If the user goes BACK in the browser and tries...

12 January, 2012   

Example for Dumping a database to HTML tables