battles/admin/test.php
2018-03-01 19:52:26 +02:00

23 lines
746 B
PHP

<?php
include '../config.php';
include_once '../classes/nick.php';
//include '../functions.php';
//showinf_pers(10736,1);
//showinf_pers(10736);
$row = db::c()->query('select * from `bank` WHERE owner=10929 OR owner=11221')->fetch_assoc_array();
print_r($row);
echo '<hr>';
$row2 = db::c()->query('select * from `bank` WHERE owner=10929 OR owner=11221')->fetch_row_array();
print_r($row2);
echo '<hr>';
$row3 = db::c()->query('select * from `bank` WHERE owner=10929 OR owner=11221')->fetch_object_array();
print_r($row3);
echo '<hr>';
$obj = new nick(11221); var_dump($obj->login()); echo $obj->login()['login']. $obj->login()['level'];
echo '<hr>';
$obj2 = new nick(11221,0); var_dump($obj2->login()); echo $obj2->login()['login']['level'];