alright, like i said, i'm rather new to php, so i have some questions.
in the first snippet of code you have this:
$arr = array("adam","bill","clay","james","sarah");
i know you're putting the data into the array, but the data i need is in a database. i.e. i don't know what the data is before the database loop, which you tell me to put in after this.
i'll just leave that one for now, but i'm sure i will have other questions. this is turning out to be something difficult for me, when i thought it would be rather easy. perhaps because i havn't used arrays that much? i'm not sure.