Hello I have a problem with one of my PHP website. It's a custom made shopping cart. Somtimes when clickng on pagination the website keeps loading permanently but withouth dsplaying the results from the database. It's just loading ..and loading..and loading and with a message at the browser bottom bar "waiting for http://myURL". Do you have any idea about wha's the common reason a website stuck on loading when clicking internal links..like the server is busy and can't diplay results from database?" I contacted my hosting company and they say everithing is ok on my account. Is it possible to be something related to my script? I'm not facing this problem each time...only sometimes when browsing the website it happen the content to not display but withouth any error (the website just keep loading with no end). I'm not sure if this could be a problem from the hosting or from my script (any unclosed tag ..or some kind). Do you think it will help to W3C validate the website? Hope someone can help me here. Thanks!!
That certainly is one possibility. It could be. No, if the site was bad you'd have the problem all the time. (W3C validation just tells you what's wrong, it doesn't fix problems with your code.) You're asking someone who has never seen the site to solve a problem that could take hours, or even days - of paid work - just to diagnose.
This is usually caused by a bad sql query or unclean data. that causes the script to attempt to output more than it should. review you queries and data very carefully to see if you can figure out what is causing your bug. If you can't find it send me a pm, and I'll be glad to take a look.