05.03.2016, 14:31
Witam, mam kolejny problem z pluginem MyBB xd
To moja pętla:
I jest problem w tym, że nic w Gang się nie wyświetla.
Demo: http://psr-serv.pl/forum/panel/index.php?page=top
Testowe konto:
l: MyBB PL
h: 111111
.... Zauważyłem $gangid = $i['kills']; a powinno być $gangid = $i['gang'];. Jaki ja głupi jestem...
To moja pętla:
Kod PHP:
while($i = $query->fetch_array()) {
$czasonline = "".$i['time']."";
$czasonliner = "secondToString($czasonline)";
$pgcontent .= "<tr>
<td class=\"trow2\" align=\"center\" style=\"font-size: 24px;padding: 6px;\">1.</td>
<td class=\"trow2\" align=\"center\" style=\"font-size: 24px;padding: 6px;\"><img src=\"bskin/271.png\" style=\"height: 90px;\"></td>
<td class=\"trow2\" style=\"padding: 6px;\">
<span style=\"font-size: 20px;\"><a href=\"index.php?page=statygracza&player_name=".$i['name']."\">".$i['name']."</a></span><br>";
if($i['premium'] == 3)
{
$pgcontent .= "<span class=\"ranga headmin\"><i class=\"fa fa-star\"></i> Head Admin</span>";
}
if($i['premium'] == 2)
{
$pgcontent .= "<span class=\"ranga admin\"><i class=\"fa fa-crosshairs\"></i> Administrator Serwera</span>";
}
if($i['premium'] == 1)
{
$pgcontent .= "<span class=\"ranga modekserwer\"><i class=\"fa fa-gift\"></i> Junior Admin</span>";
}
if($i['premium'] == 0)
{
$pgcontent .= "<span class=\"ranga premium\"><i class=\"fa fa-user-plus\"></i> VIP</span>";
}
if($i['premium'] == -1)
{
$pgcontent .= "<span class=\"ranga uzytkownik\"><i class=\"fa fa-user\"></i> Użytkownik</span>";
}
$pgcontent .= "<br>
<span>Status: </span> ";
if($i['online'] == 1)
{
$pgcontent .= "<span style=\"color:#4daa1b;\">OnLine</span>";
}
else
{
$pgcontent .= "<span style=\"color:#e61818;\">OffLine</span>";
}
$pgcontent .= "</td>
<td class=\"trow2\" style=\"padding: 6px;\">";
$gangid = $i['kills'];
$gangresult = $con->query("SELECT * FROM Gangs WHERE uid = '$gangid'");
$gangresulti = $gangresult->fetch_array();
$pgcontent .= "Gang: ".$gangresulti['name']."<br>";
$pgcontent .= "
Ranga: pf<br>
Czas OnLine: "; $pgcontent .= secondToString( $czasonline );
$pgcontent .= "</td>
<td class=\"trow2\" style=\"font-size: 24px;padding: 6px;\">".$i['kills']."</td>
</tr>";
}
Demo: http://psr-serv.pl/forum/panel/index.php?page=top
Testowe konto:
l: MyBB PL
h: 111111