Welcome to SQL Injection Practice

The query you're injecting into is SELECT teamname FROM teams WHERE tid=$id

Your query: SELECT teamname FROM teams WHERE tid=1