PDA

View Full Version : rookie #1


alldollazkount
11-25-2007, 09:33 PM
this is my first time with a script that ask you for your db information ... i'm do not know what to place inside of the config.php file

example:

<?php
///////////////
// FastFreeMedia Free Edition Copyright Martin Krohn V.6
///////////////
//database settings
$user = 'user'; what go's here?
$pass = 'pass'; what goes here?
$host = 'hostname; What goes here?
$db = 'database'; what goes here?
//DON'T CHANGE THIS LINE
@ini_set('session.use_trans_sid', false);
@ini_set("url_rewriter.tags","");
@mysql_connect($host,$user,$pass) or die(mysql_error());
@mysql_select_db($db) or die(mysql_error());
$resultconfig = @mysql_query("SELECT * FROM config LIMIT 1");
$row = mysql_fetch_row($resultconfig);

$site_title = "$row[0]";
$site_url = "$row[1]";
$number_of_latest_games = "$row[2]";
$number_of_most_popular_games = "$row[3]";
$googleid = "$row[4]";
$cache_update = "$row[5]";
$admin_address = "$row[6]";
$seo_support = "$row[7]";
$cookie_time = "$row[8]";
$dropdown_limit = "$row[9]";
?>


& do i change anything else in this script ...
when i did try to fill in the lines with what i thought went there and loaded to my server i get a Unknown MySQL server host 'ftp' (1) error ....
& how do you run the install file?
one more thing if i may.. i understand that the script inside the free.rar is for the free site ... but what is the files in the import.rar for how do you use them?

im sure by now i have lived up to rookie #1 .. if you can help me please help.......thank you

blank
11-26-2007, 10:37 AM
you have to put the MySQL login information in these:

$user = 'user'; what go's here?
$pass = 'pass'; what goes here?
$host = 'hostname; What goes here?
$db = 'database'; what goes here?

ask your host about that....