09-23-2016, 08:49 AM
Hello,
thank you for response. That sounds good, but it don`t work for me.
At the moment, this is my script for the menu of the homepage:
<pre>
<pre></pre>
</pre>
Now, i wan't to hide the following:
<pre>
<pre></pre>
So I did this:
<pre></pre>
</pre>
But now, there is the following Error in the Apache log: PHP Parse error: syntax error, unexpected '<' in /var/www/html/secret/sani/termine.php on line 35.
Thank you for your help!
thank you for response. That sounds good, but it don`t work for me.
At the moment, this is my script for the menu of the homepage:
<pre>
<pre>
Code:
<nav>
<div class="wrapper">
<ul id="menu" class="clearfix">
<li><a href="/sani">Home</a></li>
<li><a href="#">Dienstpläne</a>
<ul>
<li class="purple"><a href="/sani/aktuell/kw38.php">Aktuell</a>
</li>
<li class="purple"><a href="#">Archiv</a>
<ul>
<li><a href="/sani/archiv/2016/september">September</a></li>
<li><a href="/sani/archiv/2016/juli">Juli</a></li>
<li><a href="#">Juni</a></li>
</ul>
</li>
<li class="purple"><a href="#">Erstellen</a>
<ul>
<li><a href="/sani/admin/kw38_erstellen.php">KW38</a></li>
<li><a href="#">KW39</a></li>
<li><a href="#">KW40</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="/sani/termine.php">Termine</a></li>
<li><a href="/sani/changelog.php">Changelog</a></li>
</ul>
</div>
</nav>
</pre>
Now, i wan't to hide the following:
<pre>
<pre>
Code:
<li class="purple"><a href="#">Erstellen</a>
<ul>
<li><a href="/sani/admin/kw38_erstellen.php">KW38</a></li>
<li><a href="#">KW39</a></li>
<li><a href="#">KW40</a></li>
</ul>
</li>
So I did this:
<pre>
Code:
<?php if (checkMenu(2,$user->data()->id)){
<li class="purple"><a href="#">Erstellen</a>
<ul>
<li><a href="/sani/admin/kw38_erstellen.php">KW38</a></li>
<li><a href="#">KW39</a></li>
<li><a href="#">KW40</a></li>
</ul>
</li>
} ?>
</pre>
But now, there is the following Error in the Apache log: PHP Parse error: syntax error, unexpected '<' in /var/www/html/secret/sani/termine.php on line 35.
Thank you for your help!