06-10-2009, 10:00 PM
|
#4 (permalink)
|
|
Banido
Registrado em: Aug 2009
Posts: 150
Agradecido 39 Vezes em 24 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
|
Ta ae axo que eh isso neh:
<?php
$L2JBS_config["mysql_host"]="localhost"; // MySQL IP
$L2JBS_config["mysql_port"]=3306; // MySQP port
$L2JBS_config["mysql_db"]="l2jdb"; // l2jnet_db or your lineage 2 server database name
$L2JBS_config["mysql_login"]="root"; // MySQL Login name
$L2JBS_config["mysql_password"]="root"; // MySQL Password
$L2JBS_config["javascript_sort_method"]="bubble";
$link = mysql_connect($L2JBS_config['mysql_host'].":".$L2JBS_config['mysql_port'], $L2JBS_config['mysql_login'], $L2JBS_config['mysql_password']);
if (!$link)
die("Couldn't connect to MySQL");
@mysql_select_db($L2JBS_config['mysql_db'], $link)
or die ('Error '.mysql_errno().': '.mysql_error());
error_reporting(0);
$sql = mysql_query("SELECT * FROM characters WHERE online = 1 ORDER BY char_name") or die(mysql_error());
$contar = mysql_num_rows($sql);
?>
@adrianolago
Entendi nada do que tu escreveu...Não so bom em inglês e os tradutores q tenho n traduz tudo =/
|
|
|