function zmienne_postaci($id_postaci)
{
include_once('../postac/ekwipunek.php');
$polaczenie=mysqli_connect
(host
, login
, password
, basename);
$zapytanie_o_staty = "SELECT str, agi, con, wis, `int`, cha, fort, will, ref, bab, zycie, zycie_maksymalne,
witalnosc, wielkosc FROM baza_postaci WHERE id_postaci = '$id_postaci'";
$staty = mysqli_query($polaczenie, $zapytanie_o_staty);
$postac = mysqli_fetch_array($staty);
$postac['str_mod']=modyfikator($postac['str']);
$postac['agi_mod']=modyfikator($postac['agi']); $postac['ref']=$postac['ref']+($postac['agi_mod']);
$postac['con_mod']=modyfikator($postac['con']); $postac['fort']=$postac['fort']+($postac['con_mod']);
$postac['wis_mod']=modyfikator($postac['wis']); $postac['will']=$postac['will']+($postac['wis_mod']);
$postac['int_mod']=modyfikator($postac['int']);
$postac['cha_mod']=modyfikator($postac['cha']);
$magia_ac=0;
$uniki_ac=0;
$naturalne_ac=0;
if($wielkosc != 'medium')
{
switch($postac['wielkosc'])
{
case 'small':
$wielkosc_ac = 1;
break;
case 'large':
$wielkosc_ac = -1;
break;
case 'medium':
$wielkosc_ac=0;
break;
}
}
$postac['ac']=10+$agi+$reka_lewa['ac']+$armor['ac']+($wielkosc_ac)+$naturalne_ac+$magia_ac+$uniki_ac;
$postac['touch_ac']=10+$agi+($wielkosc_ac)+$magia_ac+$uniki_ac;
$postac['flatfooted_ac']=10+($wielkosc_ac)+$magia_ac+$uniki_ac+$reka_lewa['ac']+$armor['ac'];
$postac['right_dmg']=$reka_prawa['dmg_'.$postac['wielkosc']];
$postac['left_dmg']=$reka_lewa['dmg_'.$postac['wielkosc']];
$postac['melee_hit']=$postac['bab']+($postac['str_mod']);
$postac['right_weapon']= $ekwipunek['right_hand'];
$postac['left_weapon']= $ekwipunek['left_hand'];
$postac['left_shield']=$ekwipunek['left_hand'];
$postac['armor']= $ekwipunek['body'];
return $postac;
nie wyświetla tych ostatnich danych tabeli:/ jakby nie widziało pliku include once ekwipunek:/