Help true php MASTERS

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

    Help true php MASTERS

    I have a problem while installing. when i add details in my cofig.php file e.g

    $dbhost='localhost';
    $dbuser='xxx_xxx';
    $dbpass='xxxxx4';
    $dbname='xxx_xxx';

    When i fill all details as given above. Then also it shows could nt con db
    check


    i think i am filling the details in wrong order plese give me the correct order eg. Xxx_database

    #2
    $databasehost="localhost";
    $databaseuser="";
    $databasepass="";
    $databasename="";
    mysql_connect($databasehost, $databaseuser, $databasepass) or
    die("Could not connect to the database");
    mysql_select_db($databasename);

    check your spelling, check you don't have the dbname and dbuser mixed up and check that it is actually localhost a few hosts i've seen dont use it

    Comment


      #3
      Nothing Happened Bro help me

      Comment


        #4
        are you sure you are using dbname, db user prefixed with your cpanel user name?

        Comment


          #5
          remove htaccess data on your script like yourdomain.com/.htacess

          Comment


            #6
            check your dbuser and dbname, it should be yourmy3gblogin_yourdbuser and yourmy3gblogin_yourdbname

            Comment


              #7
              Ya it's like that [login name_dbusr] but nothing happen
              Last edited by Shayaan; 15.06.11, 10:07.

              Comment


                #8
                if your using cPanel, make sure the mysql user has permissions to access to the selected database. you can check this under the cPanel 'Current Databases' in MySQL Databases page. if user has not permissions, you must add permissions using 'Add User To Database' options.

                if permissions are ok, you have some wrong username/pass or database name details.

                Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader
                PHP Tutorials: How to Secure Your PHP Script (PHP SECURITY)
                Want to Develop/Edit your WAP/Web Site? Add me to Gtalk (gmail) 'lakshan1989' or PM me.

                Comment


                  #9
                  No i am n't using cp nothing happening help me who are using my3gb hosting
                  Last edited by Shayaan; 16.06.11, 12:11.

                  Comment

                  Working...
                  X