cool. thanks for the help guys. In fact, i had gotten myself a little confused with mysql_fetch_array. I had forgotten that it does not actually touch the db, just the result set. Thanks a lot.
Second question if you have a chance:
I have a function that calls a number of other functions that each modify the database. If i would like that whole process to be one transaction, can i simply start the transaction at the beginning of the calling function, and then use 'commit' at the end after all the other functions modified the database? Thanks a lot for any insight.