Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/08/2010, 18:09
slen
 
Fecha de Ingreso: diciembre-2008
Mensajes: 3
Antigüedad: 15 años, 4 meses
Puntos: 0
problema con un codigo

Saludos nesesito ayuda con esto me da error en las lineas 5 y 6
Código PHP:
Ver original
  1. <?php
  2. include "./banadmin/config.inc.php";
  3. srand((double)microtime()*1000000);
  4. $result = mysql_query("SELECT * FROM banners WHERE level=$level AND Active='1' ORDER BY RAND() LIMIT 1");
  5. $list = mysql_num_rows($result);
  6. $row = mysql_fetch_array($result);
  7. $banid = $row["id"];
  8. $image = $row["img"];
  9. $height = $row["height"];
  10. $width = $row["width"];
  11. $alt = $row["details"];
  12. $url = $row["url"];
  13. $bps = $row["bps"];
  14. if ($bps == '') {
  15. print"<a href=\"click.php?banid=$banid&link=bps\" target=\"new\">";
  16. print"<img src=\"$image\" height=\"$height\" width=\"$width\" alt=\"$alt\" border=\"0\">";
  17. print"</a>";
  18. }
  19. else {
  20. if ($url == '') {
  21. print"<img src=\"$imgloc$image\" height=\"$height\" width=\"$width\" alt=\"$alt\" border=\"0\">";
  22. }
  23. else {
  24. print"<a href=\"click.php?banid=$banid&link=$url\" target=\"new\">";
  25. print"<img src=\"$imgloc$image\" height=\"$height\" width=\"$width\" alt=\"$alt\" border=\"0\">";
  26. print"</a>";
  27. }
  28. }
  29. $result = mysql_query("UPDATE banimp SET hits = hits+1 WHERE bannerid = '$banid'");
  30. ?>