Author name: Yang Yang

Hello, I'm Yang. I build online businesses that please people. Want to join in and post some useful articles on Kavoir.com? Shoot me a message.

HTML CSS Drop Down Menu Made Easy – SuckerFish Enhanced

There’s a pure css drop down menu named SuckerFish published at ALA. Really straightforwardly clean code and simple drop menu script, however it might be friendlier for developers if it’s combined with the li:hover hack for IE6. The HTML: <ul id=”nav”> <li><a href=”#”>bodycare</a> <ul> <li><a href=”#”>lotions</a></li> <li><a href=”#”>creams</a></li> <li><a href=”#”>balms</a></li> <li><a href=”#”>butters</a></li> </ul> </li> <li><a …

HTML CSS Drop Down Menu Made Easy – SuckerFish Enhanced Read More »

Create SQL Auto Increment Column (ID: Primary Key) in Table

With database development, a perfect data structure paradigm is that data records should all be uniquely distinguishable from each other. Therefore when you are designing and creating data fields or columns for an entity, you must always have an identifying column or field for each and every of the records stored in a table, enabling …

Create SQL Auto Increment Column (ID: Primary Key) in Table Read More »

PHP: File Upload Script (HTML Form + PHP Handler Class)

It’s sometimes cumbersome to handle uploaded files — checking if it is really uploaded, moving and renaming. Why not writing all these chores into a class and make our own file upload script? First we are going to create a simple class to handle uploaded files and move them to some place we designate for …

PHP: File Upload Script (HTML Form + PHP Handler Class) Read More »

PHP: Resize Image and Store to File

While there are a lot of methods for you to resize images with php, we will be using extension gd this time. Make sure you or your hosting company has installed it in the php distribution by running <?php if (extension_loaded(‘gd’)) { // return true if the extension’s loaded. echo ‘Installed.’; } else { if …

PHP: Resize Image and Store to File Read More »

Update your theme to WordPress 2.7 with Comments Threading and Paging

Well dismiss me if I’m a little too late for this but just now I encountered this client who needs to update a wordpress theme, the comments section or comments.php to be precise, to accommodate some of the new features introduced in WordPress 2.7, comments threading and comments paging. The easy way — for new …

Update your theme to WordPress 2.7 with Comments Threading and Paging Read More »

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax …

Scratching your head for a mystic error in your SQL query? No matter how you look into it, it just seems right and should by the God’s name work as you have wished. But it doesn’t and keeps pumping out annoying SQL syntax errors. Don’t panic, I have a few tips on this that might …

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax … Read More »

Top Sites Visited on Internet, Download the Free Top Sites List (Top 1,000,000 Sites in Traffic)

Alexa, the traffic company under Amazon is now releasing the top sites ranking data free. Updated daily, it’s currently the most authoritative top sites ranking data by traffic you can find on the Web. Download the list here. It presents the 1 million sites most visited around the globe. Other than Alexa, you can also …

Top Sites Visited on Internet, Download the Free Top Sites List (Top 1,000,000 Sites in Traffic) Read More »

Free Reverse Domain & IP Tool for Other Websites or Domains on the Same Server

Privacy policy? You don’t have privacy anyway. Well that’s just a saying about how you can never be private on Internet as it’s always possible to digg out who you are in real life by bits and pieces you left about yourself everywhere on the Web. Reverse domain tool comes handy when you want to …

Free Reverse Domain & IP Tool for Other Websites or Domains on the Same Server Read More »

Free Online Visual Trace Route Tool

Trace route (command) is a common network diagnostic tool to debug network problems or check how data is passed through the whole network through all different kinds of computers, routers and such. A visual trace route tool, however, draws the data passage in illustrative diagrams or on a map for visionary perception graphically. You Get …

Free Online Visual Trace Route Tool Read More »

Free WordPress Hosting and Much More – DreamHost Apps Free Hosting Invitation

DreamHost is soon going to be offering absolutely free WordPress hosting! It comes with all possible managed features and with Google Apps pre-installed with your chosen domain — which can be xxx.dreamhosters.com or your own top level .com. Actually there’s more than just WordPress. With every free hosting account, you have WordPress, Drupal, ZenPhoto, phpBB, …

Free WordPress Hosting and Much More – DreamHost Apps Free Hosting Invitation Read More »

PHP Array Length Function to Get Length of Arrays

PHP Arrays are collections of items identified and ordered by index. Array length is just the number of elements it contains. For an array: <?php $greetings = array( ‘Good morning!’, ‘Good afternoon!’, ‘Good evening!’ ); ?> The length of array in PHP code above is simply the number of strings contained in it, in this …

PHP Array Length Function to Get Length of Arrays Read More »

Which is better for AJAX requests, GET or POST?

As per HTTP protocol specifications, client browsers send http post requests in two-step processes: 1) send the headers, 2) send the data. Therefore, for websites with high volume traffic, it’s definitely preferable to choose GET method for AJAX requests over HTTP, because all it takes for GET to get out is a URL request, which …

Which is better for AJAX requests, GET or POST? Read More »

Extended CSS Sprites for Foreground Images <img>

CSS Sprites is a popular way to reduce image requests to the server and hovering lag to load another background image cased by network latency. Jenny has also devised a technique for foreground image CSS sprinting by Extending CSS Sprites which in essence bears all the merits of the original CSS Sprites method. Basic concept …

Extended CSS Sprites for Foreground Images <img> Read More »

Scroll to Top