PLS HELP! Having trouble with config.php

by 13 replies
17
I truly need help with this config.php file. Been trying to figure it out for days now but no luck and no tutorial online to give some insight on what I should do.

I have some PHP knowledge and HTML knowledge but need some guidance in mysql.

Below is the section on the config.php I'm having trouble with...the trouble area is in red




To give you an idea of what I've done so far, I installed MyPHPAdmin in the actual file folder like this...

FTP folder funcards to my webhost

(inside this folder is)

Folder images
Folder admin
Folder css
Folder myphpadmin (i installed myphpadmin in this folder - database ecards was created in this folder with myphpadmin)

( no fields or tables yet - setup.php is suppose to create them )

So my dilemma is I'm not sure how to link/code ecards database in $dbdatabase.

I did noticed when I installed myphpadmin it stated location was- - root>ecards. Not sure if this means anything but added it just in case.

To give an idea of what setup.php does when I run it, I get this:



Just in case...I did contact server host for the information on mysql.
my website is with yahoo
my host is suppose to be 'mysql'

Any guidance or solution would greatly be appreciated!

If you need additional info feel free to ask here.

xxxx

Valeen
#programming #configphp #pls #trouble
  • UPDATE:
    This is a free third party ecard script. It has a config.php and once configured it goes to a setup.php to set up tables. The entire folder has been FTP on my webhost.
  • Hi Valeen

    Are you sure about the following values:

    The dbhost value usually is either a URL, an IP address or will be "localhost" if the database resides on the same server as the web host.

    And the dbuser value usually isn't an e-mail address (but it could be).

    I would double-check these values. Let me know if I can be of assistance.

    Bill
    • [1] reply
  • Banned
    [DELETED]
    • [1] reply
    • Many thanks weaverIT and mywebwork for your 'time' and 'quick' responses. xxx

      To assist you both in hopes to provide additional guidance to my dilemma I placed the entire config.php file in this post for you both (or anyone else ) to review when you get a moment.





      I do hope both of you can help me with this when you have a chance.

      BIG HUGS for responding!

      Thank you,

      Valeen

      PS***weaverIT I did try your suggestion but had no luck, setup.php showed the same error...
  • Hi Valeen

    I would have guessed the same thing weaverIT has guessed - and your error message clearly states the you can't connect to the database.

    Can you use PHPMyAdmin to connect to your database? Is there really a database instance named "ecards".

    I would try a simple PHP program to connect to the database just to see if your parameters are correct. I tried to post a sample for you here, but the forum software seems intent on removing the variables (question - what use is the "CODE" tags if you can't use them to display code?).

    A good sample to modify is here:

    PHP MySQL Connect to a Database

    Modify this with your parameters (which I still think are wrong) and see if you can connect to your database.

    If you have difficulty with this I am going to PM you with an e-mail address you can get me at, and I'll send you the code via e-mail - I realize that as a new member you can't reply to a PM yet.

    Best of luck

    Bill
  • Banned
    [DELETED]
    • [ 1 ] Thanks
    • [1] reply
    • I really appreciate you both weaverIT and mywebwork for all the time you've taken to help me solve this issue!

      You guys are the BESTEST!!

      weaverIT I'll do as you suggest and see if it works. I'll post what happens here in the next day or so.

      mywebwork I'll take a look at that good sample to modify you suggested and see if it'll help.

      Many thanks to you both for your kindness and time for helping me. You both are an asset to Warrior Forum.

      xxxx

      Valeen
  • I have not sleep, so I might have missed something skimming though this, but are you on a shared host? if so the database name would most likely have a prefix on it. yourlogin_ecards

    -Brad
    • [ 1 ] Thanks
  • Thank you Lisa, Brad, mywebwork and weaverIT for your help and guidance!

    Mywebwork test worked perfectly! yep-IT WORKS! As far as connecting but can't connect to the database ecards. I use weaverIT advice on privileges and I'm listed as a 'wildcard' with very little privileges so I have to contact Yahoo to help me fix it.

    The config.php file - once changed worked but had issues with privilege problems on Yahoo's end.

    So guess this is resolved.

    Thank you all for your time and guidance!

    xxxxx

    Valeen
  • Brad I use Yahoo webhosting if this helps.
  • Question:

    I would like to thank everyone who posted to my reply but don't know how to do it. To the left it shows can anyone direct me on how I can do this.

    Many thanks,

    xxxx

    Valeen
    • [1] reply
    • Go to each post where you want to thank someone and look at the lower right of that message for the "Thanks" button. Click it.
      • [ 1 ] Thanks
  • Banned
    [DELETED]
  • Banned
    [DELETED]
  • Banned
    [DELETED]

Next Topics on Trending Feed

  • 17

    I truly need help with this config.php file. Been trying to figure it out for days now but no luck and no tutorial online to give some insight on what I should do. I have some PHP knowledge and HTML knowledge but need some guidance in mysql.