Parašė LifeGame· 2009 Sau. 8 19:01:15
#1
:) neprijungia į serverį, gal kas pasakys kur kodo klaida? (Kodas ne visas na tik dalis kurioje klaida)
return ($transaction == md5 ($_CONF ["mokejimai_pass"] . "|{$_SERVER['REMOTE_ADDR']}|{$order_id}|{$test}|{$status}"));
}
include "kascia.php";
function local_connect ()
{
global $config;
$ci = mysql_connect (
$config['MasterServer']['servername'],
$config['MasterServer']['username'],
$config['MasterServer']['password']);
if (!$ci) die ("mysql connect error");
mysql_select_db ($config['Database']['dbname']);
return $ci;
}
$ci = local_connect ();
Failas iš kurio imama info:
<?php
$config['Database']['dbname'] = 'loginaname';
$config['MasterServer']['servername'] = 'www.phpmyadmin.bendras.com';
$config['MasterServer']['username'] = 'loginname';
$config['MasterServer']['password'] = '123456';
?>