Randomly Featured Post

How To Select Columns of Text in Your Browser (FireFox)

11. April 2010

5 Comments

How To Select Columns of Text in Your Browser (FireFox)

Tweet This is a neat trick for copying columns of text from a table into some other application. This is particularly useful when you don’t need the whole table of information, and just want one column or several columns (e.g. just the usernames from a list of members). I haven’t tried it on other browsers, […]

Continue reading...

Recent Posts

22. August 2014

0 Comments

How To Import Excel Dates Into MySQL Using PHPMyAdmin

Tweet I tried importing a CSV into PHPMyAdmin, and everything got imported successfully except the date. The date used in Excel is different from MySQL, and number formatting won’t work in this case. The only solution that I found was to create a new column, and apply this formula to it (assuming column A has […]

Continue reading...

8. April 2014

0 Comments

How To Enable Gzip Compression

Tweet Whenever someone visits your website, your website’s server will deliver all the required files (text, CSS, HTML, etc) to the visitor’s computer. Logically, the bigger the files, the longer it takes for your website to load on your visitor’s computer. The main reason why gzip is important is because it speeds up file transfer […]

Continue reading...

2. April 2014

0 Comments

How To Output The Current Date in Javascript

Tweet Sometimes you want to display a date that’s based on your visitor’s computer’s time, and that’s when Javascript comes in handy because it’s client-side. Here’s code that will display today’s date in this format: Thursday, April 3 2014 No tag for this post.

Continue reading...

30. March 2014

0 Comments

How To Use AWeber Personalization Code And Variables

How To Use AWeber Personalization Code And Variables

Tweet Personalization fields allow you to tailor your emails so that it appears like like a personal email to every one of your subscribers. With AWeber, you’re able to do this easily. Using personalisation fields in your AWeber emails is a simple 2-step process: Step 1: Craft your email message as you would normally, but […]

Continue reading...

29. March 2014

0 Comments

How To Randomly Select From A Record Based On Weight (PHP, MySQL)

Tweet I got this code from a brilliant comment here, and it’s a simple formula that allows you to randomly select from a database. The difference is, each record is weighted and the random sampling also takes that into account. For example, this will be very useful if you have several people in your database, […]

Continue reading...

15. March 2014

0 Comments

How To Install and Enable PDO For cPanel, WHM

Tweet PHP Data Objects ( PDO ) is a PHP extension that provides a consistent way of interacting with databases. To use PDO, you’ll need PHP 5, and PDO has to be installed and enabled, or you’ll get an error like this: “Fatal error: Class ‘PDO’ not found in…” To check whether PDO is even […]

Continue reading...
See more articles in the archive