Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
need help
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Smarty Forum Index -> Help Wanted (commercial)
View previous topic :: View next topic  
Author Message
minky67
Smarty Rookie


Joined: 21 Feb 2012
Posts: 13

PostPosted: Tue Feb 21, 2012 8:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7299
Location: Lincoln Nebraska, USA

PostPosted: Tue Feb 21, 2012 8:45 pm    Post subject: Reply with quote

yep those are database errors. your database and db config need to be setup correctly.
Back to top
View user's profile Send private message Visit poster's website
minky67
Smarty Rookie


Joined: 21 Feb 2012
Posts: 13

PostPosted: Tue Feb 21, 2012 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
minky67
Smarty Rookie


Joined: 21 Feb 2012
Posts: 13

PostPosted: Wed Feb 22, 2012 11:48 am    Post subject: Reply with quote

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
View user's profile Send private message
jacz
Smarty Pro


Joined: 13 Nov 2010
Posts: 249

PostPosted: Wed Feb 22, 2012 12:55 pm    Post subject: Reply with quote

No tables, no results and only mysql error.

You should read what you are posting:

Table 'u193378798_ma.l1_settings' doesn't exist
Back to top
View user's profile Send private message Visit poster's website
minky67
Smarty Rookie


Joined: 21 Feb 2012
Posts: 13

PostPosted: Wed Feb 22, 2012 1:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
jacz
Smarty Pro


Joined: 13 Nov 2010
Posts: 249

PostPosted: Wed Feb 22, 2012 1:41 pm    Post subject: Reply with quote

But you try to use ma.l1_settings
Back to top
View user's profile Send private message Visit poster's website
minky67
Smarty Rookie


Joined: 21 Feb 2012
Posts: 13

PostPosted: Wed Feb 22, 2012 1:53 pm    Post subject: Reply with quote

ive tried a new database now and imported sql file still no good

jacz ive sent you a pm
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Help Wanted (commercial) All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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
Protected by Anti-Spam ACP