thanks for the quick reply. the rest of the script works fine, just the delete function gives this: DELETE FROM emails WHERE id=46 Record deleted! then if you page back and refresh, or simply go to phpmyadmin, id 46 (for example) is still there. i'm guessing it is something fairly simply i keep overlooking. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php