Hi, anyone please help me
when I try to close a connection to the database from a static method, "Unreachable code detected" error occured.
What's the problem actually?
Thank you before
Make sure there is a return value at the end.
Most probably you would be returning a value in a conditional statement but did not do it if that condition was false.
A good way is to post a sample of your code so that any errors noticable can be pointed out soon. Or you would end up decyphering it yourself.
cheers