Det hjælper ikke ret meget.. Her den nye kode:
<?php
include("php\connect.php");
mysql_select_db("cms");
$res2 = mysql_query("SELECT * FROM opsetning2 where id = '1'");
$row = mysql_fetch_array($res2);
$Design_hent = "design/".$row['ind']."/system.php";
function Menu_Data() {
global $Design;
global $strMenu_Total;
$Design = "";
$res2 = mysql_query("SELECT * FROM menu10 order by plads asc");
include($Design_hent);
while($row = mysql_fetch_array($res2)) {
If ($row['ikon'] == "intet") {
$strIkon = " ";
} elseif (ereg("\[",$row['ikon'])) {
$strIkon = str_replace("[","", $row['ikon']);
} else { $strIkon = "<img src=\"ikoner/" .$row['ikon'] ."\">";}
$strInside .= $start_menu_punkt .$strIkon .$mellem_menu_punkt ."<a href=\"".$row['til'] ."\">" .$row['text'] ."(" .$row['plads'] .")(" .$row['id'] .")</a>" .$slut_menu_punkt;
}
$strMenu_Total = $start_menu .$strInside .$slut_menu;
$strTekst ="Dette er main vinduet...";
$Design = str_replace("<--Menu-->", $strMenu_Total, $Design);
$Design = str_replace("<--Tekst-->", $strTekst, $Design);
}
Menu_Data();
echo $Design;
echo mysql_error();
include("php\luk.php");
?>
Som kan ses her:
http://80.160.115.231/rasmus/cms+/