1 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kamildu/public_html/ogloszenia24.com.pl/include/banery_ponprom.php on line 5
<? require_once("admin/wyniki_1.php"); $limit=$_POST['baneryponprom']; $pobieranie12 = mysql_query ("SELECT * FROM baneryponprom WHERE aktywny = 'T' AND CURDATE()< dataw ORDER BY rand() LIMIT $limit"); $id_banera_inf =$zapisz['id']; $plik_banera_inf =$zapisz['plik_banera']; $adres_banera_inf =$zapisz['adres_banera']; $url_strony_inf =$zapisz['url_strony']; $width_ban_inf =$zapisz['width_ban']; $height_ban_inf =$zapisz['height_ban']; if($plik_banera_inf) {$addr = "baneryponprom/$plik_banera_inf";} if($adres_banera_inf) {$addr = "$adres_banera_inf";} $max_width = 700;//default 150 $max_height = 320;//default 300 $width = $width_ban_inf; $height = $height_ban_inf; @$x_ratio = $max_width / $width; @$y_ratio = $max_height / $height; if(($width <= $max_width) && ($height <= $max_height)) { $tn_width = $width; $tn_height = $height; } else if(($x_ratio * $height) < $max_height) { $tn_width = $max_width; } else { $tn_height = $max_height; } if($rozszerzenie === "swf") { echo " <object type=\"application/x-shockwave-flash\" data=\"".$addr."\" width=\"".$tn_width."\" height=\"".$tn_height."\"> <param name=\"movie\" value=\"".$addr."\" width=\"".$tn_width."\" height=\"".$tn_height."\"> <param name=\"quality\" value=\"best\"><param name=\"wmode\" value=\"transparent\"></object> "; } else { echo "<a href=\"header_baner_top.php?idbaner=1&id_b=".$id_banera_inf."\" target=\"_blank\"><img src=\"".$addr."\" border=\"0\" width=\"".$tn_width."\" height=\"".$tn_height."\" alt=\"Reklama\"></a>"; } ?> <TABLE height=5 CELLPADDING="0" CELLSPACING="0"><tr><td></td></tr></table> <?}?>
2 Warning: Division by zero in /home/kamildu/public_html/oglo szenia24.com.pl/include/lspons or.php on line 7
<? $start1 = $_GET['start1']; $limitlinki=150; if (!$start1){$start1=0;} echo"<table width=879 border=0 > <tr><td class=sponsor2 align=center ><img src=images/strz.gif class=dwukropek2 border=0 /> Linki sponsorowane. </td></tr></table>"; $config = mysql_query ("SELECT * FROM lsponsorowane WHERE curdate() <= dataw limit $start1,$limitlinki"); echo"<table width=879 border=0 class=sponsor3 cellpadding=0 cellspacing=0> <tr><td align=center>"; { $idr=$row['idr']; $tytul=$row['tytul']; $adres=$row['adres']; } ?>
jak to naprawic ?