Filter By Category - Html


Here's some of my tips, tweaks and tuts, ranging from PHP, Linux, MySQL and more!

Snippets / HTML

Make a whole table rows a hyperlink with HTML

The other day when I was creating a new mail inbox feature for a certain website I needed to somehow make a row of information all clickable in order to take you through the full details of that particular message. I thought there's probably a way I could do this with JavaScript but surely there was an easy way to do this with normal H...

9th Feb, 2012 | » Read more Snippets like this | » Read More

Snippets / HTML

Use PHP to round up to a nearest multiple

With this handy little function you can easily round up a given number to the nearest multiple of your choice. The function /** * Round up to the nearest multiple of your choice. * * @param int $number * @param int $near * @return int */ function get_nearest_multiple( $number, $near ) { $nearest = round($numbe...

6th Oct, 2011 | » Read more Snippets like this | » Read More

Snippets / HTML

Encode emails to stop spam harvesting

Snippet Length: 5 minutes Difficulty: Easy Knowledge: HTML Just a quick snippet here; there are many ways in which to make it as hard as possible for spam harvesting bots to scan for possible email addresses and store them one method is to HTML Encode each character in the mailto link. Let us take the following email address inf...

9th Feb, 2011 | » Read more Snippets like this | » Read More