By the by, a comment on you PHP/SQL code.
$query="SELECT * FROM staffinformation WHERE Team= 'Juventus'";
You have no ORDER BY
clause in that SQL. So you are completely at the mercy of the database as to what order the records will be shown in. No, they will *NOT* always be shown in the order you think they will. If, for example, you deleted a record in the staffinformation
table and later added a new record, the new record would likely appear in the place where the deleted record had appeared, almost surely out of your expected order.
It may be working now, but it's very very poor database practice to depend on it working forever.