Get Auto Increment value from MySQL table

Many a times we require the next Auto Increment value from a MySQL table. Most of the people would do something like this: $query = “Select MAX(id) from users”; $res = mysql_query($query); $row = mysql_fetch_assoc($res); $maxid = $row[‘MAX(id)’]; echo $maxid; This would give correct results but if we delete the latest row, it will start… Continue reading Get Auto Increment value from MySQL table

[Solved] Absolute positioning and screen-resolution problem

Absolute positioning is great for positioning items anywhere on a page but it does not mix well with screen-resolution. It might look fine on your resolution but it might look completely different on another resolution. Element placement changes upon changing the screen resolution or even when resizing the browser window. It is because items positioning… Continue reading [Solved] Absolute positioning and screen-resolution problem

The best way to earn online

I’ve come across many sites, forums and blogs teaching thousands of methods to earn online. Some would really zoom past your head if you don’t know basic marketing tricks. There are Paid To Click, Paid to Post, Paid to Read, Paid to Write and Paid To *insert anything here*. XD Anyways, I’ve tried various methods… Continue reading The best way to earn online

Searching for a text string in all files and directories recursively in PHP

Sometimes you need to edit some part of your website and unfortunately it isn’t made by you. You will, obviously, need to search for the file in which that particular part of site exists. In CMSs/forums/blogs, it get really hard to search it manually. I was having a similar problem. I needed to edit the footer of… Continue reading Searching for a text string in all files and directories recursively in PHP

Moved my blog to new domain

You might be shocked but I moved my blog to a new domain – www.absolutelytech.com, just after one day at www.insanelyme.com . Actually, that blog was more of a general life-based blog. I felt it wasn’t suitable for a tech blog. Hence the new name. It roughly took me 5 minutes to do the job.… Continue reading Moved my blog to new domain

Got a new domain for my blog (How I moved my blog to new domain)

Just bought www.insanelyme.com for my blog. As I consider myself insane (most of you will agree with that), I found this name suitable for my blog. I bought it in the same instant when I saw it was available. I added the domain in cPanel as addon domain but unfortunately it didn’t support second level… Continue reading Got a new domain for my blog (How I moved my blog to new domain)