Posts from April 2009.

Dots Aren’t Allowed In PHP Cookie Names

When you try and use cookies in php, you can’t use dots / periods [.] in the names. So this won’t work:

$var = $_COOKIE[''];

You can set them with dots using Javascript, but when you go to access them, the dots magically become underscores [ _ ]

More… »

Panic’s Coda Bookmarks In Code Navigator

It is mentioned on the Panic site, but it took me ages to find it.

You can add bookmarks or tags to a file that will appear on Coda’s code navigator. Most of the time it’s as simple as an !

/* !bookmark */

<!-- !bookmark -->

/* !bookmark */ or // !bookmark

/* !bookmark */ or // !bookmark

You can of course replace the word bookmark with anything you like.

For a full list:

Return Number Of Rows With PHP From SQL Database

Occasionally working with SQL databases (not my beloved MySQL) I always struggled getting the number of rows in a consistant manner.

Until now…

More… »

Solution to Firefox 3.0.8 Search Bar Bug – Enter Not Working

A long time ago, back when I used Firefox 1.5 the enter key stopped working in all forms. I had to use shift-enter to submit and get new lines. Back then I was a little less geeky and I just reinstalled and faced the loss of all my extension and bookmarks. Well it happened again recently, but this time with 3.0.8 and only for the Firefox search bar and I wasn’t so keen to throw in the towel this time.

More… »