Mysql help with script

Discussion in 'MySQL' started by eikliw, Jun 30, 2008.

  1. #1
    its one of those torrent search engine scripts.
    visit seedthe.net to view what comes up, or read here:

    the header file its talking about is as follows:
    i know nothing about this stuff so any help would be awesome.
     
    eikliw, Jun 30, 2008 IP
  2. CreativeClans

    CreativeClans Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Add or die(mysql_error()); to the end of the mysql_select_db and mysql_query instructions, and see what shows up.

    The first error that you posted indicates that the query didn't finish well, and therefore $result doesn't contain a valid mysql result set.
     
    CreativeClans, Jun 30, 2008 IP
  3. eikliw

    eikliw Active Member

    Messages:
    205
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    thanks, it now says: Table 'eikliw_seed.torrent_tags' doesn't exist
    , i made imported a tags.sql file through phpadmin and it created the table.

    Now it says
    Warning: array_values() [function.array-values]: The argument should be an array in /home/eikliw/public_html/seedthe/header.php on line 24

    Warning: Wrong parameter count for min() in /home/eikliw/public_html/seedthe/header.php on line 24
     
    eikliw, Jun 30, 2008 IP
  4. CreativeClans

    CreativeClans Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Your query probably doesn't return any result, therefore the array $arr isn't defined and the function tags_info() returns an undefined value.
    Try adding the following line at the beginning of the function tags_info():

    $arr = array();

    Of course, you'll still have to find out why the query doesn't find any rows.
     
    CreativeClans, Jul 1, 2008 IP