right now I am using:
while ($myrow = mysql_fetch_row($result))
{
$validateun = $myrow[1];
$passwordHash = $myrow[2];
$email = $myrow[4];
$dtcgroupid = $myrow[9];
$extranetApproved = $myrow[18];
$downloadApproved = $myrow[19];
$adminLevel = $myrow[21];
$lastName = $myrow[22];
$firstName = $myrow[23];
}
I'm tired of using row numbers because it's too easy to change the db and then no code works anymore - I want to use field names.
I have tried:
$myrow[name]
$myrow["name"]
$myrow['name']
but no luck - what do i use to specify the column name, not the column number?
Thanks!!