";
}
while($row = mysql_fetch_array($shortnews_mc_read))
{
extract($row);
$shortnews_mc_titel = substr($titel,0,28);
$shortnews_mc_titel_zs = substr($titel,25,28);
$shortnews_mc_titel_a = str_replace("$shortnews_mc_titel_zs","...",$titel);
foreach ( $kategorien AS $kategorien_element )
{
if ( $kategorie==$kategorien_element[0] )
{
$mainkategorie = $kategorien_element[2];
break; //foreach beenden
}
}
if($mainkategorie == $cat_1)
{
echo "$shortnews_mc_titel_a
";
}
}
// Ende Software
// Hardware Short News
$shortnews_mc_db = "SELECT * FROM wfcms_news ORDER BY datum DESC LIMIT $max_maincat_2";
$shortnews_mc_read = mysql_query($shortnews_mc_db);
if($cat_2 = $cat_2)
{
echo "Hardware News:
";
}
while($row = mysql_fetch_array($shortnews_mc_read))
{
extract($row);
$shortnews_mc_titel = substr($titel,0,28);
$shortnews_mc_titel_zs = substr($titel,25,28);
$shortnews_mc_titel_a = str_replace("$shortnews_mc_titel_zs","...",$titel);
foreach ( $kategorien AS $kategorien_element )
{
if ( $kategorie==$kategorien_element[0] )
{
$mainkategorie = $kategorien_element[2];
break; //foreach beenden
}
}
if($mainkategorie == $cat_2)
{
echo "$shortnews_mc_titel_a
";
}
}
// Ende Software
?>