Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- 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
1189
posted 14 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
1898
posted 14 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
1196
posted 14 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
3150
posted 14 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
2194
posted 14 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
1256
posted 14 years ago by wizard04
Couple of ways to check if HTML5 form elements exist and use a fallback if they don't.
0
1194
posted 14 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
2534
posted 14 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
3134
posted 14 years ago by inreflection7