Jump to content
  • 0

ostatní Error


Guest SpiRinG

Dotaz

11 odpovědí na tuto otázku

Recommended Posts

  • 0

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/users/spyr/freebanlist.g6.cz/web/index.php on line 21
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/users/spyr/freebanlist.g6.cz/web/index.php on line 40 

 

No z toho som aj pochopil kde mas chybu....

Pravdepodobne nemas v DB vytvorene potrebne tabulky

Link to comment
Share on other sites

  • 0

mam QWER mi pomohol vitvorilo ich automaticky je tam aj

player_ban_id player_id admin reason until

 

ak dam ban zapise

Prikladam index.php

 

 

<?php

include("inc/settings.php");

 

$webtitle = $lang["19"];

 

include("inc/header.php");

 

if(!file_exists("confige.php")){

?>

<? echo $lang["20"]; ?>

<?

}else{

 

if($setting["status"] == "on"){

 

$result = mysql_query("SELECT * FROM player_ban ORDER BY ".$setting["sortby"]." ".$setting["sortby2"]."");

 

$result2 = mysql_query("SELECT * FROM player_ban");

$rows = mysql_num_rows($result2);

 

if($rows >= $setting["numberview"]){$scroll= "600px";}else{$scroll= "100%";}

?>

<?

echo "

echo "

";

if($setting["avatars"] == "on"){

echo "

Avatar";

}

echo "

".$lang["24"]."

".$lang["25"]."

".$lang["26"]."

".$lang["27"]."

";

 

$i = 0;

 

while($row = mysql_fetch_array( $result )) {

$rf = ($i % 2 == 0 ? "tbl3" : "tbl5");

 

if($row['reason'] == ""){$reason = "permanent";}else{$reason = $row['reason'];}

if($row['until'] == "1970-01-01 01:01:40"){ $until = "permanent"; }else{ $until = $row['until']; }

 

echo "

";

if($setting["avatars"] == "on"){

echo "

".meno($row[";

}

echo "

".meno($row['player_id'])."";

echo "

".$reason."";

echo "

".$row['admin']."";

echo "

".$until."";

echo "

";

$i++;

}

 

echo "

";

}else{

echo "

".$lang["46"]."
";

}

}

?>

 

<? include("inc/footer.php"); ?>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...