Yes, Chris (the first Chris) you've got it exactly right. And once you get to the parts of PHP dealing with database access, you'll see that the functions already map columns to array indices pretty well. Before you get there, let me recommend using one of the DB layers like like [link|http://pear.php.net/manual/en/package.database.db.php|PEAR:DB]. You don't want to worry about MySQL vs. Postgres vs. Oracle issues any more than you have to.