> Nik writes:
> >>>
> $ret = array(); // will hold return values
> $q = "SELECT id, name FROM $type_colname";
> >>>
>
> Nik, a few weeks ago you gave me grief for using $i as a variable
> name in a "for" statement ($i =0;
> $i < count($dbReturn); $i++). You asked if that was a meaningful
> variable name. Now you use $q as a
> variable name?
Did I really? Hmm...
As far as using $q for the query, that's probably not the best name. Better
than $somecrap, though (which I've also been known to use on the list) =)
You're right to call me on it, but sometimes I try to post a quick answer to
shed light on the problem at hand, and not actually send what I'd consider
deployment-ready code.
Whether this is a good thing or not remains to be debated, but I feel that
if you get a code snippet that more or less does what you want, but you
still have to modify it a little bit before publishing it, then you'll
understand it much better.
Shrug,
nik