i did LAMP consulting in college to help pay for "cigarettes". i quoted $60 to $85 an hour, depending on how much i thought my client would be willing to pay. i would refuse to do flat-rate jobs, though i would provide an estimate, and i almost always finish quicker than i estimated.
i would always start with a $1500 retainer, payable via check.