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
solucior.com/28-Display_a_date_in_French.html

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
solucior.com/39-Display_natural_human_dates_for_past_dates.html

Force file download (php)

Function that forces the files download. Sending the file size does not work in all configurations.
solucior.com/24-Force_file_download.html

Infinite zoom CSS3 and Javascript (css)

Here is an example of the use of CSS3 with scale. Update : Added compatibility with Opera 11
solucior.com/22-Infinite_zoom_CSS3_and_Javascript.html

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...
solucior.com/15-Zoom_with_CSS3.html

MySQL table statistics (mysql)

This little script displays the usage statistics of your MySQL tables using SHOW TABLE STATUS syntax
solucior.com/20-MySQL_table_statistics.html

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...
solucior.com/11-Dynamically_add_rows_to_a_form__Complete_solution.html