My PHP page only half renders?

pushVTEC

Senior member
Aug 30, 2003
265
0
0
I'm writing a php page where it takes a state and then prints out addresses for all the locations in the database with that country code. It works fine for "us" and "mx" but when I try to do the phillipines, it only gets past the first 4 entries and then it stops and that's it. It doesn't even add the footer code I have in the page that has nothing to do with the query. Furthermore i found if I echo a bunch of garbage like echo "dfkljsdfkjsdflksdfkldjfsdkjfdlskfdklsfjlsdfkjsdlfkdslfj" I will get even less of the 4th result, it's almost like php is enforcing a character limit for the page and stopping after that limit. But when I do the US there is at least 5x more characters on that page and it finishes all of the records. Any ideas? I'll post up the relevant code, it's bizarre.
 

pushVTEC

Senior member
Aug 30, 2003
265
0
0
Ok resolved the issue it was because of in the image code I did:

if(strcmp($result->Fields['rating'],"bronze") == 0)

instead of

if(strcmp($result->Fields['rating']->Value,"bronze") == 0)

I have no idea why it would work for a list of 100 us addresses but not a small list of 11 phillipines locations, could anyone give me any insight as to why it would cause the problem it did?