Welcome To Snipplr


Everyone's Recent Snippets



1 ... 397 398 399 400 401 ... 552
count(*args) Count operates using three different approaches. Count all: By not passing any parameters to count, it will return a count of all the rows for the model. Count using column: By passing a column name to count, it will return a count of...
1 1882 posted 17 years ago by deschism
0 1792 posted 17 years ago by inkdeep
0 1544 posted 17 years ago by voyeg3r
0 1274 posted 17 years ago by iloveitaly
0 1557 posted 17 years ago by endorfin
0 1804 posted 17 years ago by smoover
Laat 3 seconden de load div zien met daarin de loader gif animatie. het element met id prijs wordt 3 seconden verborgen.
0 1540 posted 17 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 2047 posted 17 years ago by jasonm23
2 1854 posted 17 years ago by justinseiter
Easily Modify and Layout html with classes that on the fly create margins
0 1909 posted 17 years ago by chrisjlee
1 1776 posted 17 years ago by paulbooker
0 1558 posted 17 years ago by quickredfox
This code was adapted from a snippet I found somewhere awhile back... can't claim complete credit
1 2267 posted 17 years ago by iloveitaly
The following will cause the "comments closed" line to not display on both posts and pages.
2 4272 posted 17 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 3269 posted 17 years ago by miohtama
This is for creating an annotated tag in Git.
0 1874 posted 17 years ago by jturmel
Need a function to clean your _POST array before inserting into a database? Just pass $_POST to this function.
1 3261 posted 17 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 1624 posted 17 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 2134 posted 17 years ago by the_dev
Like python's os.listdir
1 2303 posted 17 years ago by iloveitaly
0 1241 posted 17 years ago by iloveitaly
More for me than anything else
2 1533 posted 17 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 1687 posted 17 years ago by segdeha
0 1835 posted 17 years ago by d020
1 ... 397 398 399 400 401 ... 552