Well thanks for showing intress but it is too hard to explian what is the problem because i am new to host and it is asking for mysql database with i dont know what that mean
it is too tuff to explain whould one off like to come and hlep out i will give my host pass and if it works i will give credits to you but i desperatly need help.I dont think there is not piont in showing the error in line 17 becuase that error only comes when there is something wrong with mysql info
I am using dreamwever to edit these files.
I have to edit two files one is function.php and it asks for
<?
//------------------------
// Connect to MySQL Server
//------------------------
function db_link() {
require 'variables.php';
mysql_connect($db_host, $db_user, $db_pass);
mysql_select_db($db);
}
function ChangeCity($new_city) {
the error alwayay come on line 5 wich is function db_link() { i dont know what that means and the other error comes on line 11 wich is mysql_select_db($db);
i dont even know what that is i will show how did i lay it out and please tell me my mistakes
<?
//------------------------
// Connect to MySQL Server
//------------------------
function db_link(ministryofgta.host-logik.com/gog) {
require 'variables.php';
mysql_connect($db=cenaj_vicvance, cenaj, ******);
mysql_select_db(cenaj_vicvance);
the pass is there now can someone please tell me what is wrong.
these are the code around index.php line 17
line 2-//ob_start("ob_gzhandler");
line3
line4-session_start();
like5
line6-require 'functions.php';
like7require 'variables.php';
line8
line9-db_link();
line10
line11-require 'classes/clsLogin.php';
line12$login = new Login();
line13
line 14-require 'sources/Functions.php';
line15-$GoG = new GoG();
line16
line 17function sendCookie($force = false) {
line-18 if (($SESSION['remember'] && !$COOKIE['LoginCookie']) && $force) {
line19
line20 $cookie = mt_rand(1, mt_getrandmax());
line21 $cookie = md5(uniqid($cookie));
line22$cookie_value = @serialize(array($_SESSION['session'], $cookie));
--------------------------------------------------------------------------------------------------------this is the function.php line 201
line188 $query = mysql_query($query) or die(mysql_error());
line 189
line190 return $query;
line 191
line192}
line193
line195 function SendCookie($name, $value) {
line195// 60s = 1 min
line196// 3600s = 1 hour
line197// 86400 = 1 day
line198// 604800 = 1 week
line99
line200
line201- setcookie($name, $value, 1209600);
}
function Error($message) {
if (!$message) {
$message = "This page has returned an error";
and if there is a person who is intreseted to help and know whats wrong please contact romin92@msn.com