1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Database Connection Error ?

Discussion in 'PHP & Perl' started by nautiyal, Jan 13, 2012.

  1. nautiyal

    nautiyal Junior Member

    Joined:
    Mar 24, 2011
    Messages:
    121
    Likes Received:
    0
    Occupation:
    IM
    Hi Experts,

    I have some problem while connecting to my database. I am getting this error Table xxxxxxx(databasename).class_settings' doesn't exist. I want to know why I am getting this error and how to recover from this error. I had already edit my conn.php file and everything is ok but whenever I refresh my website page I am getting this error.
     
  2. HostStage

    HostStage Jr. VIP Jr. VIP Premium Member UnGagged Attendee

    Joined:
    May 20, 2010
    Messages:
    1,770
    Likes Received:
    1,729
    Occupation:
    BHW - CEO of Webhosting Company
    Location:
    BWH from France
    Home Page:
    Well at first glance, i'm guessing that you have an empty database without the required table in it.

    Did it work before, or you are trying something new ?
     
    • Thanks Thanks x 1
  3. nautiyal

    nautiyal Junior Member

    Joined:
    Mar 24, 2011
    Messages:
    121
    Likes Received:
    0
    Occupation:
    IM
    Exactly this is the case I didn't create any table well I am using cpanel and I am not able to see option to create table there the structure of cpanel is different you know not a simple one I will appreciate if you have any more suggestion on how to go through this.
     
  4. HostStage

    HostStage Jr. VIP Jr. VIP Premium Member UnGagged Attendee

    Joined:
    May 20, 2010
    Messages:
    1,770
    Likes Received:
    1,729
    Occupation:
    BHW - CEO of Webhosting Company
    Location:
    BWH from France
    Home Page:
    You should have a phpmyadmin icon near to mysql icon.

    You go there, select your database, and you should find your way from there to create your table.

    You could do it through PHP too ;)
     
    • Thanks Thanks x 1
  5. nautiyal

    nautiyal Junior Member

    Joined:
    Mar 24, 2011
    Messages:
    121
    Likes Received:
    0
    Occupation:
    IM
    OMG you rock sir I will call you PHP experts now well I know it's basic but it seems to be look like you make your hands full with this may I know your skype id? I knew you are not going to give here in this thread :p please message me your skype id I am just curious to learn something about this programming I need helping hand
     
  6. nautiyal

    nautiyal Junior Member

    Joined:
    Mar 24, 2011
    Messages:
    121
    Likes Received:
    0
    Occupation:
    IM
    Alright I created table under my database but this doesn't solve my problem I am getting same error what should I do now? Do I need to mention table name in conn.php file as well....:confused:
     
  7. gimme4free

    gimme4free Executive VIP Jr. VIP Premium Member

    Joined:
    Oct 22, 2008
    Messages:
    1,879
    Likes Received:
    1,931
    Is the table named exactly class_settings and is it a part of the database, databasename