Going back to your post Re^15: global var I think I now understand. You are accessing $manageusers::LoggedOn_user_id from a different script (update_table.cgi ?) from the one that set the value which was presumably manage_users.cgi. As you found that doesn't work.
One solution would be retrieve it directly from the CGI::Session object.
pojmy $dbh = manageusers::OpenConnection(); warn("update_tables.cgi after open connection"); # Dispatch to proper action based on user selection my $count = 0; my $query = new CGI; my $cgiURL = CGI::url(); my $action = lc ($query->param('action')); ## changes ## # my $userid_1 = 0; my $session = CGI::Session->load( "driver:MySQL", $query, { Handle => $dbh } ); my $userid_1 = $session->param("user_id");
In reply to Re^26: global var
by poj
in thread global var
by tultalk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |