Thank you Installer!
Your code sure looks better than mine!
Unfortunately it still gives the same result as mine did.
I can post here a sample of my query result given as a table, and an example of what I want my table to look.
The result from my query can be returned as the following table:
|GO:000011|
|GO:000022|
|GO:001232|
But this is not what I need my user to see. What I want my user to see is a table like this:
|_________|GO:000011|GO:000022|GO:001232|
|GO:000011| 100% | 50% | 0% |
|GO:000022| 50% | 100% | 0% |
|GO:001232| 0% | 0% | 100% |
The percentages are obtained from that url (that's what the calcsimil function returns as $tok)
However my code gives a table like this:
|_________|GO:000011|GO:000022|GO:001232|
|GO:000011| 100% | 50% |
So the function is getting the result it should be getting but it does not go all the way through my table!
I am sorry for insisting, but I hope you guys can help me now that I explained things a little better!
I was really enjoying learning php (it's for a course I am doing) but then I came to this problem, and I feel very frustrated because I don't have sufficient knowledge and experience to deal with this.
Thank you again Installer for your help! (sorry about using the wrong tags... won't happen again 🙂 )
katya