Thanks, robnalexpress, sorry for double-posting.
Thanks Mohammad, that helps.
Jamil, you could either write a PHP script and run it by accessing it from the browser or by setting it up to run when you hit a button. You could also just use the info to help you write your SQL statements.