<snip> > What is the best PHP code to use for this inside a > PHP > code? </snip> I meant ... What is the best PHP code to use for this inside a PHP page/file. (e.g. calculate.php) Also the total of the 3 tables should than be updated to a 4th table which I did not mention. So the total of table 1, 2 and 3 should than be updated to a 4th table. I want to keep it all seperated like this (in different tables) so it's easier to manage and learn from. Thanks! Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php