Parašė MatasLTU· 2011 Vas. 23 18:02:23
#1
Bandau is lineage2 statistikos paimti ta vieta kur rodo kiek zaideju zaidzia, bet viska suvedes gaunu stai ka:
Warning: mysql_num_rows(): supplied argument is not a valid
MySQL result resource in /home/matasltu/domains/lfs.wd.lt/public_html/administration/panel_editor.php(122) : eval()'d code on line 12
Online:
Gal cia ant v6? nes pas mane tai v7
PHP
Viska surasau va atsiusiu kodus:
openside("Zaidejai");
?>
<?php
$hostas= 'l';
$user= '';
$pass= '';
$baze= '';
$dbh=mysql_connect ($hostas,$user,"$pass");
mysql_select_db ("$baze");
$sql = mysql_query("SELECT `online` FROM `characters` where `online`=1");
$ppl = mysql_num_rows($sql);
echo "Online:$ppl";
?>
<?
closeside();
Viska surasau kaip reikia tik dabar istryniau ten kur pvz user pass ir t.t
Redagavo MatasLTU· 2011 Vas. 23 19:02:14