• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

My PHP page only half renders?

pushVTEC

Senior member
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.
 
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?
 
Back
Top