ng Please help with a PHP webste.

Discussion in 'PHP' started by MyArtGallery, Sep 17, 2011.

  1. #1
    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!!
     
    MyArtGallery, Sep 17, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    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.
     
    Rukbat, Sep 17, 2011 IP
  3. shofstetter

    shofstetter Well-Known Member

    Messages:
    178
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    120
    #3
    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.
     
    shofstetter, Sep 17, 2011 IP