New database connection problem

am posting my previous code i want to try n work on that again i just created a submenu but not linked

this code i was working is interfering with my already existing codes