Code solutions to PHP, JS, CSS

Spread your code soluces to the world

Love me

Search results for : dates    (7)

Display a date in French (php)

Function gdhfr for "Groupe Date Heure France" shows the date and time in the french format. mixed gdhfr ( int $timestamp = time() [, bool $hm = false [ , bool $s = false ] ] ) $timestamp = UNIX time $hm = when set to TRUE, displays hours and minutes $s = when set to TRUE, displays seconds

Display natural human dates for past dates (php)

Little function to display past dates with a natural human language as on iphone based messages. It can write dates : now, 5mn ago, today at 12:18, yesterday at 08:20, monday at 21:12, 3 november at 12:18 (modify function for english users), 24 december 2013 at 23:59

Force file download (php)

Function that forces the files download. Sending the file size does not work in all configurations.

Infinite zoom CSS3 and Javascript (css)

Here is an example of the use of CSS3 with scale. Update : Added compatibility with Opera 11

Zoom with CSS3 (css)

CSS3 allows the function of "scaling"(or zoom) on an HTML element. In the example below, the scale is assigned to the pseudo class : hover. Syntax : transition: (transition-property) (transition-duration in secondes) (transition-timing-function) • transition-property : all, css property • transition-duration : timing...

MySQL table statistics (mysql)

This little script displays the usage statistics of your MySQL tables using SHOW TABLE STATUS syntax

Dynamically add rows to a form. Complete solution (php)

Here is a complete solution for adding rows to a form. This sample script displays a form for insert and update products. When clicking on the link [+], we add a new product line. It also includes the update by sending the "mod" parameter corresponding to the ID of the MySQL table row to edit. Dynamic system for adding rows : Initially, the...