Welcome To Snipplr


Everyone's Recent Snippets



1 ... 398 399 400 401 402 ... 553
2 1239 posted 16 years ago by justinseiter
Easily Modify and Layout html with classes that on the fly create margins
0 1236 posted 16 years ago by chrisjlee
1 1164 posted 16 years ago by paulbooker
0 1033 posted 16 years ago by quickredfox
This code was adapted from a snippet I found somewhere awhile back... can't claim complete credit
1 1633 posted 16 years ago by iloveitaly
The following will cause the "comments closed" line to not display on both posts and pages.
2 3450 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 2019 posted 16 years ago by miohtama
This is for creating an annotated tag in Git.
0 1316 posted 16 years ago by jturmel
Need a function to clean your _POST array before inserting into a database? Just pass $_POST to this function.
1 2559 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 1063 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 1489 posted 16 years ago by the_dev
Like python's os.listdir
1 1529 posted 16 years ago by iloveitaly
0 774 posted 16 years ago by iloveitaly
More for me than anything else
2 1037 posted 16 years ago by iloveitaly
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 1098 posted 16 years ago by segdeha
0 1244 posted 16 years ago by d020
0 1030 posted 16 years ago by sebastian_bergmann
Gets the absolute path of the script itself even when it's executing, not just a simple "pwd".
1 1552 posted 16 years ago by loungerdork
0 1135 posted 16 years ago by hlubek
1 1139 posted 16 years ago by nico65
1 1179 posted 16 years ago by nico65
1 3393 posted 16 years ago by traeregan
From: Roberto Ierusalimschy Parses the "main" part of an XML string. It does not handle meta-data. Outputs to a table. Example: myVar = collect( myXml ) -- myVar would be a table/array of myXml
2 3796 posted 16 years ago by traeregan
1 ... 398 399 400 401 402 ... 553