• Inloggen
  • Registreer
  • Zoeken
Dit topic
  • Overal
  • Dit topic
  • Dit forum
  • Artikelen
  • Pagina's
  • Forum
  • Downloads
  • Meer opties

ICTscripters

Dé plek voor IT

Dé plek voor IT

Aanmelden

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. PHP + SQL

Forum

  • nieuwe game

    Lijno 1 november 2026 om 13:35
  • Criminolz

    qevanto 31 oktober 2026 om 20:52
  • [Beta] Ottomaan: gratis browserspel met een echte, levende stad. Feedback gezocht!

    frio 27 oktober 2026 om 12:22
  • Port Father: beta van een browsergame in Antwerpen 1931, feedback welkom

    Jeroen.G 26 oktober 2026 om 10:33
  • Maffia Hotel: een browsergame waarin je van lobbygast naar spil van het hotel groeit

    eeyk 22 oktober 2026 om 18:43
  • Crime Club volledig herschreven vanaf nul

    frio 19 oktober 2026 om 23:57
  • Malavita (nieuwe maffia game, van 0)

    jos 19 oktober 2026 om 23:18
  • Herkent deze Notion-structuurscan echte problemen?

    Jeroen.G 19 oktober 2026 om 15:09

Marktplaats

  • [Aanbod] Stadskaart voor je browsergame: van menu naar klikbare stad, vanaf €200

    frio 29 oktober 2026 om 18:17
  • [Verkoop] G4G (Gangsters 4 Gangsters): volledige broncode, nieuw gebouwd in PHP 8.3 | € 30 per domein

    frio 27 oktober 2026 om 18:54
  • [TE KOOP] Malavita.be [Maffiaspel, gebaseerd op omicidio.nl, unieke code]

    Dpm_x 26 oktober 2026 om 00:22

Index

  • Tycho
  • 20 mei 2010 om 18:35
  • Tycho
    Leerling
    Berichten
    118
    • 20 mei 2010 om 18:35
    • #1

    Beste CP'ers.

    Ik zit met het grootste probleem totheden die ik heb.
    Ik probeer al aantal dagen de probleem uit me index te krijgen.
    Het is zo, de tables worden niet steeds volledig weergegeven. Als bijvoorbeeld de menu uitklapt, worden de tables van index groter maar niet volledig weergegeven.

    Ik weet niet of ik het duidelijk genoeg heb vertelt.
    Ik weet dat de scripting bagger is, maar dat wil ik hierna proberen te repareren :)


    PHP
    <body style="margin: 5px;">
    <table align="center" width=100%>
     <tr>
    
    
     <? include('banner.php'); ?>
    
    
        <tr><td valign="top">
    	  <table width=100% cellpadding=0 cellspacing=0>
            <td valign="top">
    	<table width=100% height=100% cellpadding=0 cellspacing=0>
            <tr><td width=150 height=150 valign="top" align="center">
    <?php /* ------------------------- */
    
    
      $dbres				= mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1");
      $members				= mysql_num_rows($dbres);
    
    
      $dbres				= mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
      $online				= mysql_num_rows($dbres);
    
    
      $dbres				= mysql_query("SELECT `id` FROM `[users]` WHERE `level` & 0x80 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login`");
      $admin				= mysql_num_rows($dbres);
    
    
      $query				= mysql_query("SELECT id FROM `[messages]` WHERE `read`=0 AND `inbox`=1 AND `to`='{$data->login}'");
      $inboxnew				= mysql_num_rows($query);
    
    
      $laatstelid           = mysql_query("select `login` from `[users]` order by id desc limit 1");
      $lastmember           = @mysql_result($laatstelid,0,0);
      print <<<ENDHTML
          <table width=150><form>
            <tr><td class="mainTxt" align="center"><b>Active: $online/$members</b></td></tr>
    	<tr><td align="center"><input type="text" name="time" style="text-align: center;"></td></tr>
          </form></table>
    ENDHTML;
    
    
      if($data) {
        print <<<ENDHTML
          <table class="menu" width=150 cellpadding=0 cellspacing=0>
            <tr><td><table width=100% cellpadding=0 cellspacing=0>
    		<tr> <td width=5 class="menuTitle"><a style="color: #FFFFFF;" onClick="showMenu('main')"><IMG src="images/star22.jpg" vspace="2" hspace="2" border="0" align="absmiddle"></a>&nbsp;</td>
    			<td class="menuTitle"><b>General</b></td></tr>
    	</table>
            <table width=100% cellpadding=0 cellspacing=0 ID="main" style="position: absolute; left: -100; top: -100;">
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='home.php';">&nbsp;&nbsp;<a title="Go to Forum page" href="home.php"><font size="1.5" color="#CCCCCC"><b>Home</b></font></a></td></tr>
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='disclaimer.php';">&nbsp;&nbsp;<a title="Go to Disclaimers" href="disclaimer.php"><font size="1.5" color="#CCCCCC"><b>FAQ</b></font></a></td></tr>
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href=login.php?x=logout';">&nbsp;&nbsp;<a title="Logout directly" href="login.php?x=logout"><font size="1.5" color="#CCCCCC"><b>Logout</b></font></a></td></tr>
            </table></td></tr>
          </table>
    
    
          <table class="menu" width=150 cellpadding=0 cellspacing=0>
            <tr><td><table width=100% cellpadding=0 cellspacing=0>
    		<tr> <td width=5 class="menuTitle"><a style="color: #FFFFFF;" onClick="showMenu('control')"><IMG src="images/star22.jpg" vspace="2" hspace="2" border="0" align="absmiddle"></a>&nbsp;</td>
    			<td class="menuTitle"><b>User</b></td></tr>
    	</table>
    	<table width=100% cellpadding=0 cellspacing=0 ID="control" style="position: absolute; left: -100; top: -100; visibility: hidden;">
    	<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='list.php';">&nbsp;&nbsp;<a title="View the members" href="list.php"><font size="1.5" color="#CCCCCC"><b>Members</b></font></a></td></tr>
    	<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='list.php?s=online';">&nbsp;&nbsp;<a title="See all active users" href="list.php?s=online"><font size="1.5" color="#CCCCCC"><b>Online[$online]</b></font></a></td></tr>
    	<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='message.php?p=inbox';">&nbsp;&nbsp;<a title="Go to your inbox" href="message.php?p=inbox"><font size="1.5" color="#CCCCCC"><b>Inbox[$inboxnew]</b></font></a></td></tr>
    	<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='forum.php';">&nbsp;&nbsp;<a title="Go to the forum" href="forum.php"><font size="1.5" color="#CCCCCC"><b>Forum</b></font></a></td></tr>
    	</table></td></tr>
          </table>
    
    
    <table class="menu" width=150 cellpadding=0 cellspacing=0>
            <tr><td><table width="100%" cellpadding=0 cellspacing=0>
    		<tr> <td width=5 class="menuTitle"><a style="color: #FFFFFF;" onClick="showMenu('fam')"><IMG src="images/star22.jpg" vspace="2" hspace="2" border="0" align="absmiddle"></a>&nbsp;</td>
    			<td class="menuTitle"><b>Family</b></td></tr>
    	</table>
    	<table width="100%" cellpadding=0 cellspacing=0 ID="fam" style="position: absolute; left: -100; top: -100; visibility: hidden;">
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href=';">&nbsp;&nbsp;<a title="There are no options available yet"><font size="1.5" color="#CCCCCC"><b>No options</b></font></a></td></tr>
    	</table></td></tr>
          </table>
    
    
    ENDHTML;
    
    
        if($data->level == 4) {
          print <<<ENDHTML
    
    
          <table class="menu" width=150 cellpadding=0 cellspacing=0>
            <tr><td><table width=100% cellpadding=0 cellspacing=0>
    		<tr><td width=5 class="menuTitle"><a style="color: #FFFFFF;" onClick="showMenu('admin')"><IMG src="images/star22.jpg" vspace="2" hspace="2" border="0" align="absmiddle"></a>&nbsp;</td>
    			<td class="menuTitle"><b>Admin</b></td></tr>
    	</table>
    	<table width=100% cellpadding=0 cellspacing=0 ID="admin" style="position: absolute; left: -100; top: -100; visibility: hidden;">
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='link/admin.php';">&nbsp;&nbsp;<a title="Go to edit of linkers" href="link/admin.php"><font size="1.5" color="#CCCCCC"><b>Linkpartners</b></font></a></td></tr>
             </table></td></tr>
          </table>
    ENDHTML;
        }
        else
          print "	</td>\n";
      }
      else {
        print <<<ENDHTML
          <table class="menu" width=150 cellpadding=0 cellspacing=0>
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='home.php';">&nbsp;&nbsp;<a title="Go to Homepage" href="home.php"><font size="1.5" color="#CCCCCC"><b>Home</b></font></a></td></tr>
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='bulletlist.php';">&nbsp;&nbsp;<a title="Go to Bulletchart v3.0" href="bulletlist.php"><font size="1.5" color="#FF0000"><b>Bulletchart</b></font></a></td></tr>
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='bodyguards.php';">&nbsp;&nbsp;<a title="Go to Bodyguard training" href="bodyguards.php"><font size="1.5" color="#FF0000"><b>Bodyguards</b></font></a></td></tr>
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='link/index.php';">&nbsp;&nbsp;<a title="Go to our linkpartners" href="link/index.php"><font size="1.5" color="#CCCCCC"><b>Linkpartners</b></font></a></td></tr>
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='home.php';">&nbsp;&nbsp;<a title="Go to our mIRC Bots" href="home.php"><font size="1.5" color="#CCCCCC"><b>mIRC Bots</b></font></a></td></tr>
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='news.php';">&nbsp;&nbsp;<a title="Go to latest news" href="news.php"><font size="1.5" color="#CCCCCC"><b>News</b></font></a></td></tr>
    <tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='home.php';">&nbsp;&nbsp;<a title="Go to Forum page" href="home.php"><font size="1.5" color="#CCCCCC"><b>Forum</b></font></a></td></tr>
    
    
          </table>
    
    
        
            
          <table class="menu" width=150 cellpadding=0 cellspacing=0>
    		<tr>
    			<tr><td class="menuTitle" align="center"><b>Not able to login!</b></td></tr>
            <tr><td class="menuLink">	
            <form method="post" action="login.php" method="post"><table align="center" width="100%">
    	  <tr><td align=center>Login:</td></tr><tr>		<td align=center><input type="text" name="login" maxlength=16 style="text-align: center;"></td></tr>
    	  <tr><td align=center>Password:</td></tr><tr>	<td align=center><input type="password" name="pass" maxlength=16 style="text-align: center;"></td></tr>
    			<tr><td colspan=2><input type="submit" value="Login" style="width: 100px; height: 20px;"></td></tr>
    
    
    			</table>
    			
    						</form>
    			</td>
    		</tr>
        </table>       
    ENDHTML;
      }
    
    
    /* ------------------------- */ ?>
         <td width=15></td>
    
    
    
    
    
    
          <td valign="top"><table width=100% height=100% cellspacing=0 cellpadding=0>
            <tr><td height=5><br></td></tr>
            <tr><td><iframe src="<?php echo ($data) ? "news.php" : "home.php" ?>" name="mainFrame" width=100% height=100% frameborder=0></iframe></td></tr>
          </table></td></tr>
          </table></td></tr>
      </table></td></tr>
    </table><center>
    </table>
    </body>
    Meer tonen
  • Gast, wil je besparen op je domeinnamen? (ad)
  • Tycho
    Leerling
    Berichten
    118
    • 21 mei 2010 om 17:09
    • #2

    [offtopic]Zijn er nog mensen die het weten? (a)[/offtopic]

  • FrankY
    Another one bites the dust.
    Berichten
    598
    • 21 mei 2010 om 17:16
    • #3

    Jij laat je achter grond zien met een afbeelding, maak die afbeelding wat groter?

    Bezig met cms:)

  • Tycho
    Leerling
    Berichten
    118
    • 21 mei 2010 om 17:19
    • #4

    Welke afbeelding bedoelje nu precies?
    Enige image die hier gebruikt wordt is in het menu, maar heeft hier niets mee te maken...
    Het gaat om de middelste veld.

  • riko14
    Beginner
    Berichten
    7
    • 21 mei 2010 om 17:34
    • #5

    [offtopic]ENDHTML is uit 't jaar 0..
    Gebruik nieuwere methode's om je content weer te geven.
    Zoals: echo, print, etc.[/offtopic]

  • L.Groot
    Elite members
    Berichten
    4.888
    • 21 mei 2010 om 17:46
    • #6

    riko14,

    Weer NIET gelezen:

    Citaat

    Ik weet dat de scripting bagger is, maar dat wil ik hierna proberen te repareren

    ON: Haal de <tr> boven de banner include weg, en daaronder ook dit:
    <tr><td valign="top">
    Je kan volgens mij alleen een tabel in een tabel gebruiken als je <tr> en <td> niet hebt geopend.

    De sluit tags: </tr> / </td> moet je ook even weghalen.

    Lars

  • Tycho
    Leerling
    Berichten
    118
    • 22 mei 2010 om 00:09
    • #7

    [offtopic]Bedankt voor de quote lars, mensen lezen maar de helft[/offtopic]

    Ik heb nu degelijk het probleem opgelost.
    Ik heb op regel 3, 7 t/m 9 verwijderd. Aangezien zoals je al zei, niet gesloten worden. Oa ook de <table>-tag

    Maar hoe zit dat met de ENDHTML's?
    Ik kan ze niet vervangen door de <?PHP & ?> tags, dan krijg je alleen maar errors...
    Print heb ik vervangen door echo

  • Superior
    Meester
    Berichten
    1.947
    • 22 mei 2010 om 00:28
    • #8

    Tycho
    Je kan via de functie [func]echo[/func] of via de [func]print[/func] html weergeven.
    Ik raad je alleen aan om html zoveel mogelijk buiten PHP te houden.

    Voorbeelden:

    PHP
    <table width="100%">
    	<tr>
        	<td>Voorbeeld 1:</td>
            <td><?php echo $iets; ?></td>
        </tr>
        <tr>
        	<td>Voorbeeld 2:</td>
            <td><?php print $iets; ?></td>
       	</tr>
        <tr>
        	<td>Voorbeeld 3:</td>
            <td><?=$iets?></td>
    	</tr>
    </table>
    Meer tonen
  • Tycho
    Leerling
    Berichten
    118
    • 22 mei 2010 om 01:12
    • #9

    Superior
    Ik kan

    PHP
    print <<<ENDHTML
          <table width=150><form>
            <tr><td class="mainTxt" align="center"><b>Active: $online/$members</b></td></tr>
        <tr><td align="center"><input type="text" name="time" style="text-align: center;"></td></tr>
          </form></table>
    ENDHTML;

    Niet veranderen naar bijv.

    PHP
    <table width=100%>
        <tr>
            <td>Active:</td>
            <td><?php echo $online/$members; ?></td>
            <td align="center"><input type="text" name="time" style="text-align: center;"></td>
        </tr>
         </table>

    Het eerste wat ik dan zal krijgen is
    Parse error: syntax error, unexpected '<'

    Ik heb daar veel last van.
    Via PHP.net is het makkelijk uitgelegt, dat snap ik.
    Maar om het zo nu even goed te zetten, wordt het me nu even iets lastiger.
    Ik heb daar soms vaker vast van om van ENDHTML naar <?php tag vorm

  • Superior
    Meester
    Berichten
    1.947
    • 22 mei 2010 om 01:43
    • #10

    Klopt je moet er rekening mee houden dat je PHP gebruikt.

    Wordt dus zo:

    PHP
    <table width=100%>
        <tr>
            <td>Active:</td>
            <td><?php echo $online.'/'.$members; ?></td>
            <td align="center"><input type="text" name="time" style="text-align: center;"></td>
        </tr>
         </table>

Registratie

Nog geen account? Registreer je nu en word deel van onze community!

Nu registreren Aanmelden

ICT Nieuws

  • PHP waarschuwt voor twee ernstige bugs die makkelijk uit te buiten lijken

    Aaron 22 oktober 2026 om 22:19

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacyverklaring
  10. Contact
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design