Cytat
<br />
<b>Fatal error</b>: Call to a member function fetch_assoc() on a non-object in <b>/virtual/heros.j.pl/engine.php</b> on line <b>28</b><br />
<b>Fatal error</b>: Call to a member function fetch_assoc() on a non-object in <b>/virtual/heros.j.pl/engine.php</b> on line <b>28</b><br />
tutaj czesc scryptu z tego bledu
pozycja 9 odpowiada pozycji 28 z błedu
$nextresp = $resp_tablica[$resp]; $nextmap = $nextresp[0]; $nextx = $nextcoors[0]; $nexty = $nextcoors[1]; $query = "SELECT * FROM data WHERE resp<=NOW();"; $query = $mysqli->query($query); $queryx = $query->fetch_assoc(); if($query->num_rows !== 0) { $ok = true; 'name' => 'Heros Serwerowy', 'gdzie' => $queryx['map'], 'x' => (int)$queryx['x'], 'y' => (int)$queryx['y'], 'map' => $queryx['map'] ); } else { $ok = false; }