From: Christian H. <chr...@pd...> - 2003-12-17 07:45:36
|
> -----Original Message----- > From: man...@li... > [mailto:man...@li...] On Behalf > Of Victor Boctor > Sent: Wednesday, 17 December 2003 5:29 PM > To: man...@li... > Subject: Re: [Mantisbt-help] Delete user ends up at user not > found error > > > Hi CH, > > Following are the lines with the problem: > > > 6 DELETE FROM mantis_user_profile_table WHERE user_id='8' > > 7 SELECT * FROM mantis_user_table WHERE id='8' > > It seems the user is deleted, then we try to get some > information about > it. I will have to look at the code... > Yes although I think line 5 and 7 are the bad pair. 5 DELETE FROM mantis_user_table WHERE id='8' 6 DELETE FROM mantis_user_profile_table WHERE user_id='8' 7 SELECT * FROM mantis_user_table WHERE id='8' It looks like the code in manage_user_delete is roughly right. I don't understand how the html_meta_redirect() bit exactly works though... ... user_delete( $f_user_id ); $t_redirect_url = 'manage_user_page.php'; html_page_top1(); html_meta_redirect( $t_redirect_url ); html_page_top2(); ?> <br /> <div align="center"> <?php echo lang_get( 'operation_successful' ) . '<br />'; print_bracket_link( $t_redirect_url, lang_get( 'proceed' ) ); ?> </div> CH |