Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]

Author Topic: xampp  (Read 8717 times)

ptmac

  • Newbie
  • *
  • Karma: 0
  • Posts: 17
Re: xampp
« Reply #30 on: June 27, 2008, 08:54:05 pm »

this is my snews.php

   $db = array();
   $db['website'] = 'http://localhost/sNews16/';
   $db['dbhost'] = 'localhost'; //MySQL Host
   $db['dbname'] = 'snews'; //Database Name
   $db['dbuname'] = 'root'; //Database Username
   $db['dbpass'] = "; //Database password
   $db['prefix'] = ''; //Database prefix

   $db['dberror'] = '<strong>There was an error while connecting to the database.</strong> <br /> Check your database settings.'; //Database error message
   return $db[$variable];

is something wrong?  do I have a typo in here?

P
Logged

centered

  • Guest
Re: xampp
« Reply #31 on: June 27, 2008, 09:34:57 pm »

Is the folder for snews called "sNews16"?
   If not change  $db['website'] to what the folder name is

Is the database name called "snews"?
   If not, please change  $db['dbname'] to what the database is called

Is the user and passwords changed?
Logged

ptmac

  • Newbie
  • *
  • Karma: 0
  • Posts: 17
Re: xampp
« Reply #32 on: June 27, 2008, 09:54:45 pm »

Yes the folder is called "sNews16"
Yes the database is called "snews"
I did nothing with the user and the passwords so there is no change there.

Logged

centered

  • Guest
Re: xampp
« Reply #33 on: June 27, 2008, 10:31:12 pm »

Can you take a screenshot of phpmyadmin showing the snews database?
Logged

ptmac

  • Newbie
  • *
  • Karma: 0
  • Posts: 17
Re: xampp
« Reply #34 on: June 27, 2008, 10:35:06 pm »

Logged
Pages: 1 2 [3]