Be careful not to post your complete code on this forums. Other students have a tendency of coming to this forums and steal other student's codes. As I'm typing now, maybe they've have already stolen it. Try to insert this code after connect.php line,