Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Laat 3 seconden de load div zien met daarin de loader gif animatie.
het element met id prijs wordt 3 seconden verborgen.
0
867
posted 16 years ago by epco
Assuming you have a set of svn project folders inside a parent (only folders in parent) you can do a simple backtick `ls` to get the folder names for svn...
0
1189
posted 16 years ago by jasonm23
Easily Modify and Layout html with classes that on the fly create margins
0
1034
posted 16 years ago by chrisjlee
This code was adapted from a snippet I found somewhere awhile back... can't claim complete credit
1
1194
posted 16 years ago by iloveitaly
The following will cause the "comments closed" line to not display on both posts and pages.
2
3193
posted 16 years ago by fabi
A javscript snipped which will mark each table cell with a CSS class containing the cell's column number. This allows you to set the table column widths using just one CSS rule and without hand editing the table HTML code. This is to workaround the l...
0
1792
posted 16 years ago by miohtama
Need a function to clean your _POST array before inserting into a database? Just pass $_POST to this function.
1
1387
posted 16 years ago by the_dev
It's easy to print out an array that is readable and with only one line of code. This can easily be turned into a nifty function.
1
840
posted 16 years ago by the_dev
Here is the correct way to turn your mysql results into an array. Forget the other nonsense of useless code. Why type out this long code: "for($i = 0; $array[$i] = mysqli_fetch_assoc($result); $i++) ;" when you can accomplish the same thing with m...
1
1270
posted 16 years ago by the_dev
This is a great way to save complex objects as cookie values. You can't just json_encode because commas are not legal in cookie values. Remember not to use this for anything too big because cookies have a 4KB limit.
1
934
posted 16 years ago by segdeha
Gets the absolute path of the script itself even when it's executing, not just a simple "pwd".
1
1136
posted 16 years ago by loungerdork