PHP nl2br on one line 

I usually store data from a textarea directly to the database as is, then once I retrieve it back into HTML I use that lovely PHP function nl2br() to convert it to HTML tags. This works well for most cases until you are passing this data back into javascript where everything has to be on [...]

fb:login-button not showing on IE8 

Make sure you have the following code at the start of your HTML header document <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

LEN in MySQL 

In MySQL 5.1 LEN is called LENGTH, you use it exactly the same and pass in the link, so: LENGTH(link).

Remove all linebreaks in PHP 

If you are having problems with a string that keeps adding a line break when output from PHP to HTML then the following code will work wonders for you! $string_with_line_break = "blabla\nbla\r"; $string_without_line_break = trim(preg_replace( "/\s+/","",$string_with_line_break));

IE9 adding empty table cells in large table 

Well as usual, we are once again fighting the woes of the beloved Internet Explorer, and it appears that Microsoft’s latest greatest new and improved browser rival to the market IE9 still has a whole bunch of irritations and retardation to worry about (saw that one coming). Today I was busy loading a massive amount [...]

SELECT Duplicate Items Using SQL 

If you have a table which has duplicate items in then you can use the below statement to select them. SELECT * FROM tableName GROUP BY columnName HAVING ( COUNT( columnName) >1 )

MySQL Error: Can’t get hostname for your address 

This error is thrown by MySQL because it tries to do a DNS lookup on the address connecting to the server and it fails due to the IP not being able to be resolved back to a name or some-other deeper DNS bust problem. The easiest way to fix this is to edit your my.ini [...]

Adobe drops flash for mobiles! 

..and it’s official – so says Adobe’s blog (read it here). Adobe will be dropping support for Flash on future devices due to performance and a few other things, pushing the future more towards the HTML5 route, which isn’t neccessarily a bad thing, I just find it quite ironic and somewhat comical that they waited [...]

jQuery Colorbox not showing but background shows 

I was using Colorbox for some lightbox type effects to show larger images when clicking on thumbnails, but for some reason the background was showing up but the pretty little box in the middle where the larger image is supposed to show never showed up, so this is how I made it finally appear after [...]

SiteInfo New Web Tool 

We have just launched our SiteInfo web tool to gather information about domains on the internet. You can view the current version at hsmoore.com/siteinfo.

Get Value of Checkbox using jQuery 

This one is quite an easy one, but a good one to mention non-the-less as it does definitely come in really handy. If you would like to get a checkbox’s value to send to the backend using jQuery you can always do the following: Firstly let’s draw some HTML to illustrate our example. <input id="chkOurCheckbox" [...]

Everybody's a web host 

To cut straight to the point, “we’re living in the age where everybody’s a web host”. Whether it be small and quite pathetic or just another reseller of a larger service trying to get their cut of things, everybody truly is spamming the world with more and more web hosting packages. Just a few short [...]

Latest Sites on SiteInfo

1. shenao-shop.ru
(12 hours ago)
2. txlzw.com.cn
(1 day ago)
3. florange-yug.ru
(1 day ago)
4. downingmedia.com
(2 days ago)
5. outsourcedataworks.com
(3 days ago)
6. vodafone.co.za
(3 days ago)
7. remont-yug.com
(4 days ago)
8. njbanjiawang.com
(5 days ago)
9. giochi.com
(5 days ago)
10. briket-makinasi.blogspot.com
(5 days ago)