Script

Gestart doorShahiem3 reacties46 weergaven

4 berichten · pagina 1 van 1

Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb een menu en de Sorteerhoed link mag pas verschijnen als je uAfdeling op 0 staat en als je al bent gesorteerd mag dat niet.
Maar nu verdwijnt me menu opeens.

Code:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]is_auth[COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]]))
{[/COLOR]
     [COLOR= #0000BB]$InfQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT uName,uAfdeling FROM member_accounts WHERE uId = "[/COLOR] [COLOR= #007700].[/COLOR] 

[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]]);[/COLOR]
            [COLOR= #0000BB]$uFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$InfQuery[/COLOR][COLOR= #007700]);[/COLOR]
?>
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<center><b> [/COLOR] [COLOR= #007700].[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uName[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]</b></center><br />[/COLOR][COLOR= #007700];[/COLOR] ?>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uAfdeling[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]0[/COLOR][COLOR= #007700]) {
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]&raquo; <a href="index.php?p=sorteren">Sorteerhoed</a><br />[/COLOR][COLOR= #007700];
}[/COLOR]
?>
&raquo; <a href="index.php?p=profiel&act=edit">Wijzig profiel</a><br />
&raquo; Mijn tas <br />
&raquo; Zoeken <br />
<a href="index.php?p=logout">&raquo; Uitloggen</a><br /></center>
  [COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    ?>
<form name="login" action="index.php?p=login" method="POST">
            Gebruikersnaam:<input type="text" class="gebruikernaam" name="naam"  /><br /><br />      
            Wachtwoord:<input type="password" class="wachtwoord" name="pass" /><br /><br />
          <input type="submit" name="submit" value="Log in" /><br />
        
    </table>
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
0
Berichten
46
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]is_auth[COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]]))
{[/COLOR]
     [COLOR= #0000BB]$InfQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT uName,uAfdeling FROM member_accounts WHERE uId = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" LIMIT 1"[/COLOR][COLOR= #007700]);[/COLOR]
            [COLOR= #0000BB]$uFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$InfQuery[/COLOR][COLOR= #007700]);[/COLOR]
 [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<center><b> [/COLOR] [COLOR= #007700].[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uName[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]</b></center><br />[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uAfdeling[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]0[/COLOR][COLOR= #007700])
{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]&raquo; <a href="index.php?p=sorteren">Sorteerhoed</a><br />[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
?>
&raquo; <a href="index.php?p=profiel&act=edit">Wijzig profiel</a><br />
&raquo; Mijn tas <br />
&raquo; Zoeken <br />
<a href="index.php?p=logout">&raquo; Uitloggen</a><br /></center>
  [COLOR= #0000BB]<?php[/COLOR]
  [COLOR= #007700]}
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    ?>
<form name="login" action="index.php?p=login" method="POST">
            Gebruikersnaam:<input type="text" class="gebruikernaam" name="naam"  /><br /><br />      
            Wachtwoord:<input type="password" class="wachtwoord" name="pass" /><br /><br />
          <input type="submit" name="submit" value="Log in" /><br />
        
    </table>
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedankt Lorenz
0
Berichten
46
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Asjeblieft smile
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren