Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 374 375 376 377 378 ... 553
to
0 1513 posted 16 years ago by mware1205
0 1629 posted 16 years ago by vasilije
with focus() and center() methods
0 1416 posted 16 years ago by manatlan
1 1643 posted 16 years ago by nkm
This snippet allows you to update multiple rows of a database using a single form in one easy click
0 2500 posted 16 years ago by daveismyname
This snippet collects a date from a var and formats it into the correct format for database date entry
0 1907 posted 16 years ago by daveismyname
There are plenty of classes out there to paginate through database results, well, here's one to paginate through a static array of items. Written quite a few years ago, recently recovered from a crashed drive.
1 1280 posted 16 years ago by evilwalrus
2 login functions that check if a user is logged in by checking is a session is equal to true that would have been set on login. If not logged in the redirect to login.php
1 1629 posted 16 years ago by daveismyname
very useful function that allows you to redirect to the user to a given location
1 1916 posted 16 years ago by daveismyname
1 1632 posted 16 years ago by brandonio21
A monkey patch splitting a string into sentences.
0 2319 posted 16 years ago by cocomo
How to generate rounded corners in Firefox and Safari before CSS3 is fully implemented.
3 1657 posted 16 years ago by ff1959
Sometimes, the first or last block in a region needs to be styled different than the rest. This solution do this in simple way for Drupal 6. (originaly code from [email protected]: http://drupal.org/node/293188#comment-1282186)
2 1892 posted 16 years ago by Fake
0 1604 posted 16 years ago by wearetherock
note to self.
0 1394 posted 16 years ago by obsessivejosh
This function returns the array with all instances of the specified value removed
1 1994 posted 16 years ago by jlvallelonga
Some valid UTF-8 characters are illegal in XML: http://www.w3.org/TR/REC-xml/#charsets This statement strips them from your strings.
0 3866 posted 16 years ago by jdbartlett
1 1453 posted 16 years ago by wearetherock
1 2062 posted 16 years ago by AzizLight
This will get the document's body in a very agreeable manner - it returns the first div on the page if there is no body (hey it can happen). Adapted from code by Scott Schiller
0 1357 posted 16 years ago by remotezygote
on cygwin, run 'CPAN' to manage module installs
0 1688 posted 16 years ago by rowntreerob
Matches are as follows: 0 = protocol 1 = fqdn 2 = subdomain 3 = top level subdomain 4 = domain (blah.com) 5 = port 6 = path 7 = query string 8 = hash
1 1885 posted 16 years ago by remotezygote
0 1674 posted 16 years ago by paulbooker
A simple function that generates a select drop down. It takes 3 values. The select name ,the mode (true for hours / false for minutes) and the selected option.
1 2008 posted 16 years ago by chchrist
1 ... 374 375 376 377 378 ... 553