SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: who can help?

  1. #1
    SitePoint Member
    Join Date
    Jan 2001
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm trying to help a friend who is having these errors
    these errors are occuring more and more frequently and are causing the site to crash each nite from 7 pm til midnite.

    maybe the daily long term crash is not related to these errors..... can anyone give us a direction to go or where to look???

    Thanks Aph

    Warning: MySQL: A link to the server could not be established in inc/code/sitewide/connect_live_db.inc on line 3

    Warning: 0 is not a MySQL link index in /home2/www/tip/frames/welcome.php3 on line 4

    Warning: 0 is not a MySQL result index in /home2/www/tip/frames/welcome.php3 on line 5

    Warning: Cannot add more header information - the header was already sent (header information may be added only before any output is generated from the script - check for text or whitespace outside PHP tags, or calls to functions that output text) in /home2/www/tip/frames/welcome.php3 on line 76

  2. #2
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd say that the first error causes all other 3 errors!
    And as it said (in this part - message for debugging, PHP rulez!), the connection to your DB can't be established, so check manually if you could connect(telnet), contact your host.
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  3. #3
    SitePoint Wizard
    Join Date
    Apr 2000
    Posts
    1,483
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change your mysql_connect line to this:
    Code:
    mysql_connect("localhost", "user", "pass") or die("<b>MySQL Error: </b>" . mysql_error());
    That should tell you what the problem is. If it doesn't help, try changing the mysql_select_db statemtnt to look like that as well


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •