Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikalinga pagalba su dainų topais.

Parašė AndriusP· 2011 Vas. 22 19:02:48
#3

Na va ten jau susitvarkiau tik dabar yra dar viena bėda gal kas galit padėti.

Kaikuriems lankytojams meta klaidą:

 
Notice: Undefined index: user_id in /home/sream/domains/scream.lt/public_html/infusions/song_charts/charts.php on line 16

Notice: Undefined index: user_id in /home/sream/domains/scream.lt/public_html/infusions/song_charts/songs.inc.php on line 3
Populiariausios dainos
 
Notice: Undefined index: balsai in /home/sream/domains/scream.lt/public_html/infusions/song_charts/songs.inc.php on line 28
 
Notice: Undefined index: balsai in /home/sream/domains/scream.lt/public_html/infusions/song_charts/songs.inc.php on line 28
 
Notice: Undefined index: balsai in /home/sream/domains/scream.lt/public_html/infusions/song_charts/songs.inc.php on line 28
 
Notice: Undefined index: balsai in /home/sream/domains/scream.lt/public_html/infusions/song_charts/songs.inc.php on line 28


Nežinau man jos nėra kai kuriems yra.

Failo kodas:


<?php
 
if($userdata['user_id']==1){
error_reporting(E_ALL ^ E_NOTICE);
}
 
$result = dbquery("SELECT * FROM ".$db_prefix."charts ORDER BY 'vote' DESC");
$masyv = dbarray($result);
if(!empty($masyv)){
opentable("Populiariausios dainos");
 
echo "<table width='100%' class='tbl'>
<tr>
    <td><b>".$locale['ctbs003']."</b></td>
    <td><b>".$locale['ctbs004']."</td></b>
    <td><b>".$locale['ctbs005']."</td></b>
    <td><b>".$locale['ctbs006']."</td></b>
	<td><b>Reitingas</td></b>
    <td><b>".$locale['ctbs007']."</td></b>
</tr>";
 
$x = 0;
$result1 = dbquery("SELECT * FROM ".$db_prefix."charts ORDER BY 'vote' DESC");
 
while ($data = dbarray($result1)){
  $x++;
  $votes = (int)$data['vote'];
  if($data['reitingas'] || $data['balsai'] >0){
  $ivertinimas = $data['reitingas']/$data['vote'];
  settype($ivertinimas, "integer");
  }else{
  $ivertinimas = 0;
  }
 
echo "<tr><td>".$x.".</td>";
 
echo "<td>".$data['vote']."</td><td>".$data['artist']."</td><td>".$data['title']."</td><td>"; 
 
	echo "<img src='".INFUSIONS."song_charts/images/".$ivertinimas.".png' />";
	echo "</td><td>";
	if(iMEMBER){
echo "<form action='vote.php?veiksmas=balsuoti' method='post'>";	
echo "<input type='hidden' name='song_id' value='".$data['id']."'><input type='submit' name='' value='Balsuoti' class='button'>";
echo "</form>";
}else{
echo 'Noredamas balsuoti prisijunk';
}
echo "</td></tr>";
	}
echo "</table>";
closetable();
}else{
opentable("Dainu ivertinimo sistema");
echo "Sarasas kol kas nesudarytas";
closetable();
}
?>


atsidėkosiu už pagalbą. :)