Toplist ERROR

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Toplist ERROR

    hey coders am having a bit a problem with my up coming toplist script i am put a text on the index that shows the amount of site registered this is the code

    $sites = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM nt4_toplist"));

    echo"<b>$sites[0]</b> Registered Sites!<br/>";

    but its not working and am getting this error

    Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/chill/public_html/gb1/index.php on line 13

    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/chill/public_html/gb1/index.php on line 13

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/chill/public_html/gb1/index.php on line 13
    Registered Sites!


    can someone tell me whats the problem?

    #2
    Lol fill password for sql.and username too.
    she is beautifull than php.and i love her more than php.
    sigpic

    Comment


      #3
      what do you mean?

      Comment


        #4
        He means your a retard. lol
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          I know im a retard...
          Last edited by subzero; 25.12.09, 08:07.

          Comment


            #6
            PHP MySQL Connect to a Database
            connect with database dude.
            she is beautifull than php.and i love her more than php.
            sigpic

            Comment


              #7
              ?????????????? dude if the data base was not connected the site would not be working

              Comment


                #8
                Originally posted by Pablo View Post
                ?????????????? dude if the data base was not connected the site would not be working
                u making me laugh.
                Probably u did not included the correct database.php file which has details of database in ur this file where u using this code.
                Cant u see the error.?
                Read it 5 times.its written using password no.it mean u didnot connected to database.
                Last edited by ranzit2; 25.12.09, 07:34.
                she is beautifull than php.and i love her more than php.
                sigpic

                Comment


                  #9
                  lol true !
                  Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                  Visit: WapMasterz Coming Back Soon!
                  _______
                  SCRIPTS FOR SALE BY SUBZERO
                  Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                  FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                  _______
                  Info & Tips
                  php.net
                  w3schools.com

                  Comment


                    #10
                    let me check sumting

                    Comment


                      #11
                      $db_host = "localhost"; // DB Host
                      $db_user = "chill_pablo"; // DB User
                      $db_pass = "1234pablopg1234"; // DB Pass
                      $db_name = "chill_chillblock"; // DB Name
                      $dbc = mysql_connect($db_host, $db_user, $db_pass);
                      $dbs = mysql_select_db($db_name);



                      thats whats in my file!

                      Comment


                        #12
                        Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'chill_pablo'@'localhost' (using password: YES) in /home/chill/public_html/config.php on line 11


                        i still see you have not given rights to sql to add/edit/read your toplist!
                        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                        Visit: WapMasterz Coming Back Soon!
                        _______
                        SCRIPTS FOR SALE BY SUBZERO
                        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                        _______
                        Info & Tips
                        php.net
                        w3schools.com

                        Comment


                          #13
                          Originally posted by Pablo View Post
                          $db_host = "localhost"; // DB Host
                          $db_user = "chill_pablo"; // DB User
                          $db_pass = "1234pablopg1234"; // DB Pass
                          $db_name = "chill_chillblock"; // DB Name
                          $dbc = mysql_connect($db_host, $db_user, $db_pass);
                          $dbs = mysql_select_db($db_name);



                          thats whats in my file!
                          Its seems your using cpanel ok when login in your cpanel click on MySQL® Databases then there you will see

                          Add Users To Your Databases:

                          choose your chill_pablo and chill_chillblock

                          then make sure you tick on Privileges: ALL

                          then click on add user to database

                          thats all check now your site
                          left wap stuff

                          Comment


                            #14
                            that was one of the first thing done bro from day one when creating the data base!

                            Comment


                              #15
                              what is your site name ?
                              left wap stuff

                              Comment

                              Working...
                              X