Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    The Fun Stuff Owner
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    UK
    Posts
    2,883
    Liked
    7 times
    Points
    28,077

    Anyone here good with coding?

    I'm trying to install a game into my site.. but it just aint working..

    I keep on getting this

    Code:
    Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/markcp/public_html/usercheck.php on line 30
    
    Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/markcp/public_html/usercheck.php on line 34
    
    Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/markcp/public_html/usercheck.php on line 37
    
    Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/markcp/public_html/clocktower.001.php on line 2
    
    Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/markcp/public_html/clocktower.001.php on line 15
    
    Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/markcp/public_html/clocktower.001.php on line 70
    
    Warning:  Division by zero in /home/markcp/public_html/clocktower.001.php on line 78
    Reset: NOW
    Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/markcp/public_html/clocktower.001.php on line 173
    Error: The template .\/templates/realmsie.php could not be found.
    Help?

  2. #2
    Experienced User
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    India
    Posts
    2,445
    Liked
    31 times
    Points
    13,499
    Sorry I m not good at coding. I haven't yet learnt HTML too.

    BTW, Why isn't this thread in Public Forum? You'll get a better response if you post this in Normal Forum.
    Last edited by utkarsh30june; 02-04-2009 at 11:33 PM.

  3. #3
    The Fun Stuff Owner
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    UK
    Posts
    2,883
    Liked
    7 times
    Points
    28,077
    I dunno..

    Could a Mod move it please

  4. #4
    Junior Techie
    Overall activity: 0%

    Join Date
    Dec 2008
    Location
    Villach, Austria - Bucharest, Romania
    Posts
    134
    Liked
    0 times
    Points
    2,815
    what is the php script are you trying to use ? did you also install the database for it ?

  5. #5
    The Fun Stuff Owner
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    UK
    Posts
    2,883
    Liked
    7 times
    Points
    28,077
    What do you mean by 'what php script'?

    And yes I have installed a database

    It's the realms RPG game..

  6. #6
    Junior Techie
    Overall activity: 0%

    Join Date
    Dec 2008
    Location
    Villach, Austria - Bucharest, Romania
    Posts
    134
    Liked
    0 times
    Points
    2,815
    Those are php errors. I don't know the game, but probably you need to configure access to the database.

  7. #7
    The Fun Stuff Owner
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    UK
    Posts
    2,883
    Liked
    7 times
    Points
    28,077
    So what do I do..?

    How do I configure the mysql database..? I know I have to use PHP MyAdmin but thats it really..

    Also, is there like an automated bug/error fixer that I could install so it would fix it automatically or when I ask it to scan, it finds bugs and it would fix it..
    Last edited by Mark; 02-05-2009 at 05:17 PM. Reason: Automerged Doublepost

  8. #8
    Junior Techie
    Overall activity: 0%

    Join Date
    Dec 2008
    Location
    Villach, Austria - Bucharest, Romania
    Posts
    134
    Liked
    0 times
    Points
    2,815
    If the database is there you' re set. Look in the files you put on the server for a config.php or something like that. You need to modify the informatioin to access the database. You have to change host (or not), user, password and database. Can you give a link so i can help you without guessing ?

  9. #9
    The Fun Stuff Owner
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    UK
    Posts
    2,883
    Liked
    7 times
    Points
    28,077
    In fact.. lemme PM you my cPanel username and password

    Could you install it for me?

  10. #10
    Junior Techie
    Overall activity: 0%

    Join Date
    Dec 2008
    Location
    Villach, Austria - Bucharest, Romania
    Posts
    134
    Liked
    0 times
    Points
    2,815
    the user and password are not correct. And now the website isn't responding. Maybe too many failed login attempts.

    But seriously, try and look in the php files you copied on the server. Seriously. There must be a config file.

    cpanel will be the death of us all.

    Later edit
    :

    This is the Mysql.php file i think. Here you should make your changes. Thank god for google.

    <?php

    //edit below, change localhost to your mysql hostname (usually localhost), change username to your mysql username, change password to your mysql password and change databasename to the name o fthe database that you executed the sql file into


    mysql_connect("localhost", "contest_user", "contest_pass");
    mysql_select_db("contest_db");
    ?>
    Last edited by Kalin; 02-06-2009 at 01:09 AM. Reason: Automerged Doublepost

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Mozilla starts coding for mobiles and tablets
    By princeaniket in forum General Forum
    Replies: 2
    Last Post: 08-03-2011, 05:50 PM
  2. Replies: 3
    Last Post: 10-29-2009, 11:40 PM
  3. Good OS
    By vickypark in forum General Forum
    Replies: 16
    Last Post: 08-04-2009, 11:54 PM
  4. Coding Help
    By Mark in forum General Forum
    Replies: 2
    Last Post: 05-29-2009, 04:41 PM
  5. don't know which one is good for me
    By kwfine in forum Music (DJ)
    Replies: 5
    Last Post: 11-25-2007, 08:41 AM
All times are GMT +8. The time now is 05:25 AM.