Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This snippet is for use with image module, a small contributed module for image handling. (Yes: in Drupal you need a /contributed/ module for this o_O.
The template snippet links the images to their own node.
2
751
posted 17 years ago by berkes
Returns an array of values specified for an enumerated MySQL field
2
1138
posted 17 years ago by johnself
This PHP4 function will increment a given string by a given interval. This might be useful when a string has to be unique. An optional array with "forbidden" return values may be passed.
Usage:
2
860
posted 17 years ago by drwitt
I got most of these tips out of a great book published by O'Reilly (my favorite web-design publisher): "Programming PHP, 2nd Ed." by Lerdorf, Tatroe, and McIntyre. Another good book is "Essential PHP Security," also published by O...
2
1418
posted 17 years ago by pckujawa
Building a SELECT with conditional WHERE parts, given from form-get parameters.
1
756
posted 17 years ago by assbach
This snippet is for use with image_attach, a small contributed module that uses image module to create nice thumbs in any node type.
The template snippet makes the images show up larger in the body node, and instead of linking to itself, it links t...
2
692
posted 17 years ago by berkes
This is an example of how to use the articleHandler.class.php , this class can be found @ pietervp.com -> downloads
1
763
posted 17 years ago by pietervp
ГенерируетÑÑ ÐºÐ°Ñ€Ñ‚Ð¸Ð½ÐºÐ° Ñ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸ÐµÐ¼ цифр, которые пользователю предлагаетÑÑ Ð²Ð²ÐµÑти в форму Ð´Ð»Ñ ÑƒÑпешного ввода данных
1
673
posted 18 years ago by Memphys