Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/accounts_a/art100/public_html/ladmin/teamedit.adm.php on line 48
a w pliku ktory sie tego tyczy w linijce 48 jest taki oto kod:
KOD
44. global $PHP_SELF, $teams_tbl, $access, $color, $op, $goto;
45.
46. if($access=='root') {
47. $result = mysql_query("SELECT * FROM $teams_tbl ORDER BY zespol");
48. $il = mysql_num_rows($result);<--------- tutaj jest niby błąd
49.
50. if($il==0) {
51. echo '<table align="center" border="0" cellspacing="3" cellpadding="0">
52. <tr>
53.<td align="right" valign="top" class="uni_01"><B>Brak zespołów</B></td></tr>
</table>';
} else {
echo '
<table width="99%" border="0" cellspacing="0" cellpadding="1" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#aaaaaa" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">';
45.
46. if($access=='root') {
47. $result = mysql_query("SELECT * FROM $teams_tbl ORDER BY zespol");
48. $il = mysql_num_rows($result);<--------- tutaj jest niby błąd
49.
50. if($il==0) {
51. echo '<table align="center" border="0" cellspacing="3" cellpadding="0">
52. <tr>
53.<td align="right" valign="top" class="uni_01"><B>Brak zespołów</B></td></tr>
</table>';
} else {
echo '
<table width="99%" border="0" cellspacing="0" cellpadding="1" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#aaaaaa" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">';
Po usunieciu "mysql_num_rows" blad na stronce juz nie wystepuje. Co moze byc przyczyna takiego bledu. Nie znam sie zabardzo na PHP ale wiem ze tutaj chodzi o jakies przypisanie zmiennej pewnej wartosci z lini 47. Tak mi sie wydaje. Pomóżcie, bo chciałbym odpalić ten mod na moim portalu podobnie jak to jest na wielu innych stronach np. Lech Poznan Chodzi mi o tabele, wyniki meczów itp.