Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 139 140 141 142 143 ... 147
simply adding the tags will display the contents of the array in a much better fashion.
0 3361 posted 18 years ago by scriptmakingcom
1 1884 posted 18 years ago by JuliaKM
2 1813 posted 18 years ago by JuliaKM
This snipped adds columnstriping to cells. It works fine for most cases, but will behave strange when combined with colspan. Cells get an additional class 'even-col' or 'odd-col'
2 2353 posted 18 years ago by berkes
2 1637 posted 18 years ago by JuliaKM
Email validation routine Dave Child
8 2568 posted 18 years ago by IanLewis
This randomly displays 1 of the 5 arrays (amount of arrays to choose from can be reduced or increased)
3 2016 posted 18 years ago by jonhenshaw
Inserts the values of an array into a table. Also supports specifying if a specific field needs to be encoded using PASSWORD() Parameters: Table: Name of table to insert into Data: array of $field->$value of new data Password Field: Which field i...
3 6838 posted 18 years ago by depmed
1 2130 posted 18 years ago by eethann
get the image size and reduces it dynamically
3 2215 posted 18 years ago by valcartei
Convert 12hs format to 24hs format. In example: 10:00:00 a.m. return timestamp for 22:00. Or use: strtotime('1970-01-01 '.$hora);
1 1820 posted 18 years ago by nicolaspar
0 1768 posted 18 years ago by eethann
1 1694 posted 18 years ago by nicolaspar
to use apostrophs in the field values i.e. st john's
0 1457 posted 18 years ago by valcartei
great to validate and process a form in the same page
5 3302 posted 18 years ago by valcartei
Was fiddling around at work one day thought this might be useful.
9 5486 posted 18 years ago by djdykes
Put classes around your bodyy, to allow different colors for seperate pages and areas on your site. IT will simply add a css-safe version of the first argument in an url. Say the url is /about_us/our_company the class will be body.about-us Require...
2 1940 posted 19 years ago by berkes
2 2261 posted 19 years ago by hyperwhat
have dt and dd inline is done automatically in Firefox, but screws up in IE7. So we need additional css rules, which have to be applied only if IE is used.
0 2158 posted 19 years ago by valcartei
0 1573 posted 19 years ago by asteinhaus
The original code was meant to be used with register_globals=on. If you cannot or don't want to turn that on, then I have modified the code to work with register_globals=off.
4 2354 posted 19 years ago by Jaymoon
a function to check the validity of the postcode according to UK rules
0 4826 posted 19 years ago by valcartei
echo validarFecha( '1-1-1998', 0 ) ? 'ok' : 'ko' ; #ok echo validarFecha( '1-1-1998' ) ? 'ok' : 'ko' ; #ko echo validarFecha( '1980/05/06' ) ? 'ok' : 'ko' ; #ok echo validarFecha( '1700-5-1' ) ? 'ok' : 'ko' ; #ok
0 1852 posted 19 years ago by nicolaspar
echo ( browser_detection( 'number' ) .''. browser_detection( 'browser' ) .''. browser_detection( 'os' ) .''. browser_detection( 'os_number' ) ); Outputs (browser version, browser, os, os number): 1.5 moz nt 5.1 if ( ( browser_de...
2 3346 posted 19 years ago by llbbl
1 2130 posted 19 years ago by llbbl
A form alter to gove Drupal a separate teaser field.
3 2059 posted 19 years ago by berkes
1 ... 139 140 141 142 143 ... 147