$id_ev=$_GET["nw"];
if($id_ev)
{
?>
« ARCHIVIO NEWS
$result=mysql_query("SELECT * FROM news WHERE id='$id_ev' AND visibile='si' ORDER BY id DESC", $con);
$num_mess=mysql_num_rows($result);
while($record=mysql_fetch_array($result))
{
?>
Warning: Undefined variable $record in D:\inetpub\webs\campermagazinetv\iphone\news.php on line 48
Warning: Trying to access array offset on value of type null in D:\inetpub\webs\campermagazinetv\iphone\news.php on line 48
-
Warning: Undefined variable $record in D:\inetpub\webs\campermagazinetv\iphone\news.php on line 48
Warning: Trying to access array offset on value of type null in D:\inetpub\webs\campermagazinetv\iphone\news.php on line 48
Warning: Undefined variable $record in D:\inetpub\webs\campermagazinetv\iphone\news.php on line 49
Warning: Trying to access array offset on value of type null in D:\inetpub\webs\campermagazinetv\iphone\news.php on line 49
}
}else
{
$visual_pag=$_GET["pag"];
$estremo1=($visual_pag-1)*$numrec;
if (!$visual_pag || $del)
{
$visual_pag=1;
$estremo1=0;
}
$incremento=$_GET["incr"];
$result=mysql_query("SELECT * FROM news WHERE visibile='si' ORDER BY timestamp DESC", $con);
$num_mess=mysql_num_rows($result);
$result=mysql_query("SELECT * FROM news WHERE visibile='si' ORDER BY timestamp DESC LIMIT $estremo1, $numrec", $con);
$num_rec=mysql_num_rows($result);
if ($num_rec)
{
?>
echo $num_mess." news - Pagine ";
conta_pag($num_mess, $numrec, $numpag, $visual_pag, $incremento, $sel_cat, $p_ric);
?>
$i=0;
while($record=mysql_fetch_array($result))
{
?>
Warning: Undefined variable $record in D:\inetpub\webs\campermagazinetv\iphone\news.php on line 93
Warning: Trying to access array offset on value of type null in D:\inetpub\webs\campermagazinetv\iphone\news.php on line 93
-
Warning: Undefined variable $record in D:\inetpub\webs\campermagazinetv\iphone\news.php on line 93
Warning: Trying to access array offset on value of type null in D:\inetpub\webs\campermagazinetv\iphone\news.php on line 93
$i++;
}
}
?>
echo $num_mess." news - Pagine ";
conta_pag($num_mess, $numrec, $numpag, $visual_pag, $incremento, $sel_cat, $p_ric);
?>
}
?>
© campermagazine.tv
mysql_close();
function conta_pag($num_mess, $numrec, $numpag, $visual_pag, $incremento, $sel_cat, $p_ric)
{
$pag=ceil($num_mess/$numrec);
echo "$pag - ";
for ($i=(1+$incremento); $i<=$pag; $i++)
{
if($i!=$visual_pag)
{
$ancore.="