0)
{
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
while($row = mysqli_fetch_array($result))
{
$Flower = $row[‘Fiore’];
$Link= $row[‘Link’];
echo “

“;
echo “

“;
echo “

“;
for ($j=1; $j<=12; $j++) { $query = "SELECT ID, Fiore, Link, Mese, Raccolta FROM CalendarioRaccolta where Fiore = '".$Flower."' and Mese = '".$j."' "; if($risultato = mysqli_query($conn, $query)) { if(mysqli_num_rows($risultato) > 0)

while($row = $risultato->fetch_assoc())
{
$Collection = $row[‘Raccolta’];
if($Collection == ‘1’)
{
$Collection = ““;
}
elseif($Collection == ‘2’)
{
$Collection = ““;
}
elseif($Collection == ‘3’)
{
$Collection = ““;
}
elseif($Collection == ‘0’)
{
$Collection = ““;
}
echo ‘

‘;
}
else
{
if(current_user_can(‘administrator’))
{
echo ‘

‘;
}
else
{
echo ‘

‘;
}

}
mysqli_free_result($risultato);
}

}
echo “

“;
echo “

“;
}
echo “

FLOWERS 01 02 03 04 05 06 07 08 09 10 11 12
” . $row[‘Fiore’] . “ ‘;
if(current_user_can(‘administrator’))
{
echo ‘‘;
echo $Collection;
echo “
“;
}
else
{
echo $Collection;
}
echo ‘
‘;
echo ““;
echo ‘
‘;
echo ““;
echo ‘

“;
// Free result set
mysqli_free_result($result);
} else{
echo “No records matching your query were found.”;
}
} else{
echo “ERROR: Could not able to execute $sql. ” . mysqli_error($link);
}
// Close connection
mysqli_close($conn);
?>

Translate »
× Contact Us