Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 7 of 7

Thread: mysql error

  1. #1
    Rockefeller's Avatar
    Join Date
    Apr 2005
    Location
    53083
    Posts
    8,316
    Country

    United States
    DNF$
    8,748
    Bank
    0
    Total DNF$
    8,748
    Donate  

    mysql error

    I am putting together a picture rating site...anyway, I had everything tweaked the way I wanted it..and then... i accidentally deleted the mysql database...i went ahead and re-added another database with the same name, user and password but still receive this error:


    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/closing1/public_html/pimpsleds.com/index.php on line 451

    Warning: Cannot modify header information - headers already sent by (output started at /home/closing1/public_html/pimpsleds.com/index.php:451) in /home/closing1/public_html/pimpsleds.com/index.php on line 79

    Anyone know whats happening?

  2. #2
    Old school
    Luc's Avatar
    Join Date
    Jul 2002
    Location
    Los Angeles
    Posts
    1,619
    DNF$
    13,706
    Bank
    0
    Total DNF$
    13,706
    Donate  
    It would help if you posted the source, or at least the line in question so we can see if the problem is with the mysql syntax.

    But from the looks of it, it seems like the result set (ex: $rid = mysql_fetch_array) contains no results (is null).

    This could be for the following reasons:

    1. The user you're connecting with may not have READ/WRITE permissions to the DB. If you accidentally dropped the DB, the privileges could be dropped as well.
    2. The mysql statement is bad, add "print mysql_error();" after the mysql call to see if mysql returns an error.

    Good luck,
    Luc L.
    Looking for type-in domains? Page Rank Domains? Link Popularity Domains? Alexa Domains?
    Domain Research Tool Finds, Tracks and Acquires domains.

  3. #3
    Country hopper
    katherine's Avatar
    Join Date
    Jul 2005
    Location
    Free World
    Posts
    7,503
    Country

    Iceland
    DNF$
    30,558
    Bank
    0
    Total DNF$
    30,558
    Donate  
    The table structure is still the same ?
    NameNewsletter.com - free lists of available domain names
    ZoneFiles.net (beta) - ccTLD and gTLD droplists

  4. #4
    DNF Addict
    jdk's Avatar
    Join Date
    Jul 2004
    Location
    Florida
    Posts
    7,082
    Country

    United States
    DNF$
    1,169
    Bank
    0
    Total DNF$
    1,169
    Donate  
    It is trying to fetch data in the database where the field does not match up or not there.

  5. #5
    Rockefeller's Avatar
    Join Date
    Apr 2005
    Location
    53083
    Posts
    8,316
    Country

    United States
    DNF$
    8,748
    Bank
    0
    Total DNF$
    8,748
    Donate  
    Line 451
    Code:
    if ($r = mysql_fetch_array($query)) {
    Line 79
    Code:
    header("Location: http://".$_SERVER["HTTP_HOST"]."/index-rval=".mt_rand().".html");
    And for the CRON JOB update emails I get:

    Code:
    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in home/closing1/public_html/pimpsleds.com/cronjobs/approve.reject.php on line 85
    Line 85:
    Code:
    if ($r = mysql_fetch_array($query))
    Is there any possible way to clear this up without having to reinstall the entire site?
    Last edited by Rockefeller; 01-08-2010 at 10:10 AM.

  6. #6
    DNF Addict
    jdk's Avatar
    Join Date
    Jul 2004
    Location
    Florida
    Posts
    7,082
    Country

    United States
    DNF$
    1,169
    Bank
    0
    Total DNF$
    1,169
    Donate  
    Justin-

    There should be a line that says $query=' stuff here ';

    What you need to do is make sure the table data it is trying to grab matches the table fields in your database.

    This is something easily fixed without having to install everything.

  7. #7
    Rockefeller's Avatar
    Join Date
    Apr 2005
    Location
    53083
    Posts
    8,316
    Country

    United States
    DNF$
    8,748
    Bank
    0
    Total DNF$
    8,748
    Donate  
    Thanks jdk, I sent you a PM. I guess the problem is that I don't know how to fix that

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
  •  

Domain name forum recommended by Domaining.com