say I have a mysql table of
id person number
I want to get the array # of person which is 1 by using it's associative name. Something like getfieldnumber("person");
I can't seem to get a class to accept the associative names but it will accept the field numbers. Here is the line of code I'm having problems with.
$tbl->setColFormat("td bgcolor='#33CCFF' align=right", "$category");
When I set $category = 2; Everthing works fine. But when I set $category = "number"; which is field 2 the class won't work. If anyone sees a problem with my syntax please let me know.
Thank you,
polarz