Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The function returns the "sanitized" version of user input. Use before putting variables into SQL code.
0
929
posted 13 years ago by nebojsac
This piece of code is at least ten years old and I don't remember exactly, where I have found it. Probably it had been stolen from my friend VeZyR;)
0
907
posted 13 years ago by michaJlS
Use Facebook's sharer to easily post status updates to Facebook. The three meta tags control the default content Facebook pulls to create the post.
0
877
posted 13 years ago by dmertl
You don't modify the CMSDesk in order to display only the date or only the time. You do it through the aspx control.
http://authors.aspalliance.com/aspxtreme/sys/globalization/demos/DateTimeFormatInfoGetAllDateTimePatterns.aspx
0
1170
posted 13 years ago by inreflection7
If you have Zend_Navigation in your application, you will use navigation.xml. This code set the page title ($this->view->headTitle()) with the current page title in navigation.xml.
$navigation->current() doesn't work in my opinion.
0
1154
posted 13 years ago by postNuKe
Get the value of the autonumber field for the last record inserted into an Access database via the current connection.
0
1036
posted 13 years ago by wizard04
Couple of ways to check if HTML5 form elements exist and use a fallback if they don't.
0
1008
posted 13 years ago by vagrantradio
SQL
How to clear the history list from the \"servername\" field of SSMS Connect-to-server dialog box?
http://beyondrelational.com/ask/nakul/questions/10/how-to-remove-server-name-item-from-sql-server-management-studio.aspx
0
1433
posted 13 years ago by derebus
"This was a requirement that the client had because there were differences in how various browsers were displaying the same PDFs. By setting the "Content-Disposition" header to "attachment" it forces the user to download the file. I thought this was...
0
1088
posted 13 years ago by inreflection7