Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
You can run this sql scripts in your database.
Firstly it creates a database and after insert records (timezones)
4
938
posted 14 years ago by emregulcan
For those having trouble with encoding and decoding bencode, here is something to help you.
3
1782
posted 14 years ago by SuprDewd
This code works for me without requiring any includes, plugins, or service packs. It should also integrate seamlessly with jquery. If needing to perform this process more than once on a page, make sure namedListItem variable is unique for each case (...
0
1099
posted 14 years ago by rumremix
This code works for me without requiring any includes, plugins, or service packs. It should also integrate seamlessly with jquery.
0
943
posted 14 years ago by rumremix
When retrieving table rows with PHP and prepared statements, you must use a method called bind_result() and pass in a variable name for each column that is being returned from the database. For example, if you are selecting three columns (say, id, ti...
3
1195
posted 14 years ago by Nettuts
The current time, converted from UNIX timestamp to use in MySQL DATETIME
0
1001
posted 14 years ago by koko
Something I have always found annoying about JSF datatables is the limitation to only apply one header class style to the entire table. This is un-functional for datatables that would display monetary amount or other data that is typically right alig...
0
818
posted 14 years ago by adriamooney
Internet Explorer 7 under Windows XP Service Pack 3 has the Windows Registry "Reserved Value" 180D set that was not set before, which can cause a "Do you want to move or copy files from this zone?" prompt on moves or copies between Windows shares if...
1
1222
posted 14 years ago by karlhorky
I borrowed the script from the Dreamhost-wiki and did a minor change towards any folder.
0
669
posted 14 years ago by koko
Simple function to return a decimal value between the minValue and the maxValue.
0
1715
posted 14 years ago by Jamie
Simple function to return a value between the minValue and the maxValue.
0
810
posted 14 years ago by Jamie
I needed to create several pages that didn't use any models and contained static data inside the default layout. My first thought was to create a controller for these pages and define an action for each static page I needed. However, this solution se...
0
658
posted 14 years ago by TioSolid
run as callback from form_validation->setrules
ex:
$this->form_validation->set_rules('cc_number','Credit Card #','required|max_length[20]|callback_alpha_dash_space');
0
792
posted 14 years ago by myke