Autor Zpráva
Anonymní
Profil *
ahojte viem ze tu bolo toho uz vela napisaneho napr. http://diskuse.jakpsatweb.cz/index.php?action=vthread&forum=1&topic=21 220
ale kam do pekla mam dat ten set names ...
do config.php do index.php kam?
pouzivam red. system Nucleus vorka je tu http://astrozzy.php5.sk/pokus/

dik za rady
peta
Profil *
SQL:

CREATE TABLE ppchat_banned (
ip varchar(15) NOT NULL default '',
PRIMARY KEY(ip)
) TYPE=MYISAM COLLATE cp1250_general_ci;

CREATE TABLE ppchat_user (
id int(11) NOT NULL auto_increment,
nick varchar(16) default NULL,
psw varchar(32) default NULL,
ip varchar(15) default NULL,
laws int(11) default NULL,
gender tinyint(1) UNSIGNED default NULL,
age int(11) default NULL,
city int(11) default NULL,
mail varchar(255) default NULL,
skin int(11) default NULL,
lang varchar(3) default NULL,
datereg datetime NOT NULL default '0000-00-00 00:00:00',
datelast datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY(id),
KEY (nick),
KEY (psw),
KEY (ip)
) TYPE=MyISAM COLLATE cp1250_general_ci;


PHP
$SQLserver = mysql_connect($SQLhost,$SQLuser,$SQLpsw) or die("Error: Nepripojen k DB serveru!");
$SQLdb = mysql_select_db($SQLdbname) or die ("Error: Nepripojen k DB!");
mysql_query("SET NAMES 'cp1250'") or die("Error: Nastav kodovani DB!".mysql_error());

cili name se ma dat tam, kde se prihlasujes do databaze. Cili nejaky config.php
Anonymní
Profil *
tu je moj konfig.php ak som to tam dal nefunguje to pise stale daku chybu-hesla su pomenene

<?php
// mySQL connection information
$MYSQL_HOST = 'localhost';
$MYSQL_USER = '123456';
$MYSQL_PASSWORD = 'pokus';
$MYSQL_DATABASE = 'data';
$MYSQL_PREFIX = '';

// main nucleus directory
$DIR_NUCLEUS = '/www/9/site20609/wwwroot/pokus/nucleus/';

// path to media dir
$DIR_MEDIA = '/www/9/site20609/wwwroot/pokus/media/';

// extra skin files for imported skins
$DIR_SKINS = '/www/9/site20609/wwwroot/pokus/skins/';

// these dirs are normally sub dirs of the nucleus dir, but
// you can redefine them if you wish
$DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';
$DIR_LANG = $DIR_NUCLEUS . 'language/';
$DIR_LIBS = $DIR_NUCLEUS . 'libs/';

// include libs
include($DIR_LIBS.'globalfunctions.php');
?>
Toto téma je uzamčeno. Odpověď nelze zaslat.