in ASP when using a recordset object, I can refer to a field like this:
I know that this is pretty measly, but it still would be nice not to have to memorize what order your fields are in.
if PHP you have to refer to it numerically, like this:code:<HR>Code:foo = rs("MY_FIELD")
Is there a way to refer to a field by its name? like this:code:<HR>Code:$foo = $row[0];
code:<HR>Code:$foo = $row["myField"]
I know that this is pretty measly, but it still would be nice not to have to memorize what order your fields are in.