I am not sure were that is being called in the code
The
<select name="cteam\">
needs to be before the while loops.
And the
<option value=\"$morepointteamid\">$morepointteam</option>
needs to be in the in the $fetchmorepoints while loop.
And then the
<option value=\"$lesspointteamid\">$lesspointteam</option>
needs to be in the $fetchlesspoints while loop.
with the </select> being caled after the while loops close.
Really no place should be running the select like you you have it displayed.
One way to test if you are getting the results is to just echo out the value of each piece of data in the while loops and see what it gives. If data is missing something it wrong in the loop or the query. The trick is to work your way backwards eliminating pieces of code till you are down to a real simple query that just outputs raw data. And if it still doesn't work the query is likely the source of the issue.
My main reason for suggesting you do it that way is I suspect large segments of code are not being show and there may be an issue in some of that so striping it down to the basics getting it to work and then adding pieces back in will find the problem.