If you go to http://www,livefootballtips.com you can log in with demo1 for both name and password, click on name then post new tip and you will see the problem I have
Well, I guessed that. Your loop seems to iterate through that variable, and as I can’t see any specific issue in the code you posted, that suggests there is an issue in the way that the $sports variable was built.
I don’t know. Further up in your code there will be something that runs a query to retrieve the list of available sports. I’m guessing you are using some kind of framework here, unfortunately I have no knowledge of such things so can’t help further.