|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
minky67 Smarty Rookie
Joined: 21 Feb 2012 Posts: 13
|
Posted: Tue Feb 21, 2012 8:23 pm Post subject: |
|
|
Do i need to edit this part of the startup.php
//initialize mysql class
$db = new Database($config['server'], $config['user'], $config['pass'], $config['database'], "");
$db->connect(); |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Feb 21, 2012 8:45 pm Post subject: |
|
|
yep those are database errors. your database and db config need to be setup correctly. |
|
Back to top |
|
minky67 Smarty Rookie
Joined: 21 Feb 2012 Posts: 13
|
Posted: Tue Feb 21, 2012 8:48 pm Post subject: |
|
|
This is my actual db config edited some parts
<?php
//database server
$config['server'] = "localhost";
//database login name
$config['user'] = "MY USER NAME";
//database login password
$config['pass'] = "MY PASS";
//database name
$config['database'] = "u193378798_fb";
//table prefix
$config['tablePrefix'] = "";
//site url
$config['site_url'] = "http://the-dugout.ux1.eu/";
?> |
|
Back to top |
|
minky67 Smarty Rookie
Joined: 21 Feb 2012 Posts: 13
|
Posted: Wed Feb 22, 2012 11:48 am Post subject: |
|
|
I seem to have got the database to connect now but ran into more problems.
query fails
http://the-dugout.ux1.eu/ |
|
Back to top |
|
minky67 Smarty Rookie
Joined: 21 Feb 2012 Posts: 13
|
Posted: Wed Feb 22, 2012 1:07 pm Post subject: |
|
|
It does show the table in phpmy admin there are 12 tables altogether
ma_album
ma_country
ma_friend
ma_image
ma_manager_performance
ma_original_player
ma_original_team
ma_position
ma_settings
ma_stadium
ma_user
ma_video |
|
Back to top |
|
minky67 Smarty Rookie
Joined: 21 Feb 2012 Posts: 13
|
Posted: Wed Feb 22, 2012 1:53 pm Post subject: |
|
|
ive tried a new database now and imported sql file still no good
jacz ive sent you a pm |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|