[php] Problemen met het script, wie helpen?

Gestart doorChristum2 reacties41 weergaven

3 berichten · pagina 1 van 1

Christum

Lid · Topicstarter

Berichten
921
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het probleem is opgelost. dit topic mag gesloten worden!
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
.sidebarmenu ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font: bold 11px Verdana;
    width: 171px; /* Main Menu Item widths */
    border-bottom: 1px solid #ccc;
}
.sidebarmenu ul li {
    position: relative;
}
/* Top level menu links style */
.sidebarmenu ul li a {
    display: block;
    overflow: auto; /*force hasLayout in IE7 */
    color: white;
    text-decoration: none;
    padding: 6px;
    border-bottom: 1px solid #778;
    border-right: 1px solid #778;
}
.sidebarmenu ul li a:link, .sidebarmenu ul li a:visited, .sidebarmenu ul li a:active {
    background-color: #012D58; /*background of tabs (default state)*/
}
.sidebarmenu ul li a:visited {
    color: white;
}
.sidebarmenu ul li a:hover {
    background-color: black;
}
/*Sub level menu items */
.sidebarmenu ul li ul {
    position: absolute;
    width: 170px; /*Sub Menu Items width */
    top: 0;
    visibility: hidden;
}
.sidebarmenu a.subfolderstyle {
    background: url(http://habboway.be/images/header/logo/right.gif) no-repeat 97% 50%;
}
/* Holly Hack for IE */
* html .sidebarmenu ul li {
    float: left;
    height: 1%;
}
* html .sidebarmenu ul li a {
    height: 1%;
}
/* End */
</style>
<script type="text/javascript">

var menuids=["sidebarmenu1"] //Enter id(s) of each Side Bar Menus main UL, separated by commas

function initsidebarmenu(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
    ultags[t].parentNode.getElementsByTagName("a")[0].className+=" subfolderstyle"
  if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu
   ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px" //dynamically position first level submenus to be width of main menu item
  else //else if this is a sub level submenu (ul)
    ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.display="block"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
  for (var t=ultags.length-1; t>-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars
  ultags[t].style.visibility="visible"
  ultags[t].style.display="none"
  }
  }
}

if (window.addEventListener)
window.addEventListener("load", initsidebarmenu, false)
else if (window.attachEvent)
window.attachEvent("onload", initsidebarmenu)

</script>

<title>Habboway ~ Medewerkers informatie</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<!--<link rel="stylesheet" type="text/css" href="../css/tooltip.css" />
<script type="text/javascript" language="javascript" src="../css/tooltip.js"></script>-->
</head>
<body>
    <center>
<table width="585px" border="0" cellpadding="0" cellspacing="0">
    <tr><td background="images/top_bg.png" width="585px" height="6px"></td></tr>
    <tr><td background="images/mid_bg.png" width="585px">
<table width="585px" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="6px"></td>
    <td width="177px" valign="top">
    
    [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"navi.php"[/COLOR][COLOR= #007700]);[/COLOR]?>
        
    </td>
    
    <td width="10px">&nbsp;</td>
    
    <td width="385px" valign="top">
        
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]page[/COLOR][COLOR= #007700]] ==[/COLOR] main[COLOR= #007700]){[/COLOR] ?>
        <table width="385px" border="0" cellpadding="0" cellspacing="0">
        <tr>
        <td width="385px" height="25px" background="images/mid_top.png" align="left">
        <font color="#FFFFFF"><strong>&nbsp;&nbsp;Habboway Mederwerkers Informatie</strong></font></td></tr><tr>
        <td width="385px" background="images/mid_midden.png" align="left">
        <table width="385px">
        <tr><td>Welkom op de mederwerkers informatie tool.<br />
<br />
Via deze tool kan je alle informatie van je favoriete medewerker zien, zo kan je ook de online status zien van Habbo maar ook of hij/zij online is op Habboway :)<br />
<br />
Kortom, via deze tool loop je nooit meer informatie mis van je favoriete medewerker :)
<br />
</td></tr></table>
      </td></tr><tr>
        <td width="385px" height="3px" background="images/mid_bot.png">
        </td></tr></table>
[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR] ?>






[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE gebruikersnaam = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stafflid[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700])) {[/COLOR]    
?>

        <table width="385px" border="0" cellpadding="0" cellspacing="0">
        <tr>
        <td width="385px" height="25px" background="images/mid_top.png" align="left">
        <font color="#FFFFFF"><strong>&nbsp;&nbsp;Staff pagina van: naam</strong></font></td></tr><tr>
        <td width="385px" background="images/mid_midden.png" align="left">
        <table width="385px">
        <tr><td>
        
        <table width="379px" border="0" cellpadding="0" cellspacing="0">
            <tr><td width="64px">bla123</td>
            <td width="1px" bgcolor="#F98F00"></td>
            <td width="2px"></td>
            <td width="312px" valign="top">
blablalba1223443
            </td>
            
            </tr></table>


</td></tr></table>
      </td></tr><tr>
        <td width="385px" height="3px" background="images/mid_bot.png">
        </td></tr></table>
[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR] ?>







    
    </td>
    <td width="6px"></td></tr></table>


</td></tr>  
    <tr><td background="images/bot_bg.png" width="585px" height="6px"></td></tr>    
        </table>
        </center>
</body>
</html>


Je had de query niet goed afgelosten, je was een vergeten winkDus

[COLOR= #0000BB]<?php
$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE gebruikersnaam = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stafflid[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
?>


Moet

[COLOR= #0000BB]<?php
$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE gebruikersnaam = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stafflid[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
?>


Zijn wink
0
Christum

Lid · Topicstarter

Berichten
921
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@ Xjessex,

Bedankt hij werkt nu goed smileIk heb je de beloning van 0.10 punten gestuurt 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