Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The above example uses PHP's heredoc syntax. With it, we can completely eliminate PHP tags from the insides of HTML tags.
1
1163
posted 16 years ago by juno
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
457
posted 16 years ago by berkes
Returns an array of values specified for an enumerated MySQL field
2
693
posted 16 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
505
posted 16 years ago by drwitt
it's an excerpt of a registration form with 3 pulldowns for birthday ( day, month, year )
check for empty vars and applying CSS classes to show error on "empty" fields.
there are probably better ways, but this works for me. any suggestions welcome.
1
697
posted 16 years ago by assbach
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
909
posted 16 years ago by pckujawa
Building a SELECT with conditional WHERE parts, given from form-get parameters.
1
407
posted 16 years ago by assbach
ГенерируетÑÑ ÐºÐ°Ñ€Ñ‚Ð¸Ð½ÐºÐ° Ñ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸ÐµÐ¼ цифр, которые пользователю предлагаетÑÑ Ð²Ð²ÐµÑти в форму Ð´Ð»Ñ ÑƒÑпешного ввода данных
1
395
posted 16 years ago by Memphys