Php probleem

Gestart doorRogier2 reacties48 weergaven

3 berichten · pagina 1 van 1

Rogier

Lid · Topicstarter

Berichten
6.485
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hey ik ben bezig met mijn eerst php pagina. het is niet veel soeps en ik krijg veel hulp van shahiem maar hier kom ik echt niet uit.

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/**
 *
 * @author Rogier Fischer & Milan Drossaerts
 * @copyright 2010
 *
*/[/COLOR]

[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/config.php[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]is_ingelogd[COLOR= #007700]())

{[/COLOR]
    [COLOR= #0000BB]$layout[/COLOR][COLOR= #007700]->[/COLOR]top[COLOR= #007700]([/COLOR][COLOR= #DD0000]Bouwen: [/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div id="contentgedeelte">[/COLOR][COLOR= #007700];[/COLOR]
 
[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT
                ras
            FROM
                leden
            WHERE
                id = "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$lid_id[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
                
[COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]ras[COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ras[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700])) {[/COLOR]
          
    
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]
<table border="1 px" style="padding: 5px;">
                   <tr>
                           <td><h1> Fort </h1>
 
                            Level 12<br />
                            Upgradekosten: <br />
                            300 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            200 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            1000 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 24 &nbsp;&nbsp;<img src="http:// .eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 10 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                           </td>
                           <td align="center"><img src="http://www.eeros.nl/img/gebouwen/fort.png" alt=""  /></td>
                  </tr>
                        <td><h1> Barrack </h1>
                               Level 12<br />
                            Upgradekosten:<br /> 
                            80 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            100 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            100 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 0&nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/barrack.png" alt=""  /></td>              
                     <tr>
 
                        <td nowrap width="46%"><h1> Boerderij </h1>
                            Level 12<br />
                            Upgradekosten:<br />
                            80 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            100 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            100 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/boerderij.png" alt="" /></td>
                  </tr>
                  
                  <tr>
                        <td><h1> Boomhut </h1>
 
                            Level 12<br />
                            Upgradekosten: <br />
                            300 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            200 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            1000 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 24 &nbsp;&nbsp;<img src="http:// .eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 10 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/fort.png" alt=""  /></td>
             </tr>
           </table>
}           
           
elseif($leden->ras($fetch[[/COLOR]ras[COLOR= #DD0000]]) == [/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #DD0000])) 
{
          
    
echo [/COLOR]
[COLOR= #007700]<[/COLOR]table border[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"1 px"[/COLOR] style[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"padding: 5px;"[/COLOR][COLOR= #007700]>
                   <[/COLOR]tr[COLOR= #007700]>
                           <[/COLOR]td[COLOR= #007700]><[/COLOR]h1[COLOR= #007700]>[/COLOR] Fort [COLOR= #007700]<[/COLOR]/h1[COLOR= #007700]>[/COLOR]
 
                            Level [COLOR= #0000BB]12[/COLOR][COLOR= #007700]<[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Upgradekosten[COLOR= #007700]: <[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]300[/COLOR] hout [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/hout.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]200[/COLOR] steen [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/rock.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]1000[/COLOR] goud [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/gold.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Verdedigingswaarde[COLOR= #007700]:[/COLOR] [COLOR= #0000BB]24[/COLOR] [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http:// .eeros.nl/img/icons/schild.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Uitkijkwaarde[COLOR= #007700]:[/COLOR] [COLOR= #0000BB]10[/COLOR] [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/oog.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
                           <[/COLOR]/td[COLOR= #007700]>
                           <[/COLOR]td align[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"center"[/COLOR][COLOR= #007700]><[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/gebouwen/fort.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                  <[/COLOR]/tr[COLOR= #007700]>
                        <[/COLOR]td[COLOR= #007700]><[/COLOR]h1[COLOR= #007700]>[/COLOR] Barrack [COLOR= #007700]<[/COLOR]/h1[COLOR= #007700]>[/COLOR]
                               Level [COLOR= #0000BB]12[/COLOR][COLOR= #007700]<[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Upgradekosten[COLOR= #007700]:<[/COLOR]br /[COLOR= #007700]>[/COLOR] 
                            [COLOR= #0000BB]80[/COLOR] hout [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/hout.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]100[/COLOR] steen [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/rock.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]100[/COLOR] goud [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/gold.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Verdedigingswaarde[COLOR= #007700]:[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/schild.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Uitkijkwaarde[COLOR= #007700]:[/COLOR] [COLOR= #0000BB]0[/COLOR] [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/oog.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
                        <[/COLOR]/td[COLOR= #007700]>
                        <[/COLOR]td align[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"center"[/COLOR][COLOR= #007700]><[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/gebouwen/barrack.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>              
                     <[/COLOR]tr[COLOR= #007700]>
 
                        <[/COLOR]td nowrap width[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"46%"[/COLOR][COLOR= #007700]><[/COLOR]h1[COLOR= #007700]>[/COLOR] Boerderij [COLOR= #007700]<[/COLOR]/h1[COLOR= #007700]>[/COLOR]
                            Level [COLOR= #0000BB]12[/COLOR][COLOR= #007700]<[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Upgradekosten[COLOR= #007700]:<[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]80[/COLOR] hout [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/hout.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]100[/COLOR] steen [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/rock.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]100[/COLOR] goud [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/gold.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Verdedigingswaarde[COLOR= #007700]:[/COLOR] [COLOR= #0000BB]0[/COLOR] [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/schild.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Uitkijkwaarde[COLOR= #007700]:[/COLOR] [COLOR= #0000BB]0[/COLOR] [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/oog.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
                        <[/COLOR]/td[COLOR= #007700]>
                        <[/COLOR]td align[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"center"[/COLOR][COLOR= #007700]><[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/gebouwen/boerderij.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR] /[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                  <[/COLOR]/tr[COLOR= #007700]>
                  
                  <[/COLOR]tr[COLOR= #007700]>
                        <[/COLOR]td[COLOR= #007700]><[/COLOR]h1[COLOR= #007700]>[/COLOR] Boomhut [COLOR= #007700]<[/COLOR]/h1[COLOR= #007700]>[/COLOR]
 
                            Level [COLOR= #0000BB]12[/COLOR][COLOR= #007700]<[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Upgradekosten[COLOR= #007700]: <[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]300[/COLOR] hout [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/hout.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]200[/COLOR] steen [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/rock.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            [COLOR= #0000BB]1000[/COLOR] goud [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/gold.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Verdedigingswaarde[COLOR= #007700]:[/COLOR] [COLOR= #0000BB]24[/COLOR] [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http:// .eeros.nl/img/icons/schild.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>[/COLOR]
                            Uitkijkwaarde[COLOR= #007700]:[/COLOR] [COLOR= #0000BB]10[/COLOR] [COLOR= #007700]&[/COLOR]nbsp[COLOR= #007700];&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/icons/oog.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
                        <[/COLOR]/td[COLOR= #007700]>
                        <[/COLOR]td align[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"center"[/COLOR][COLOR= #007700]><[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.eeros.nl/img/gebouwen/fort.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR]  /[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
             <[/COLOR]/tr[COLOR= #007700]>
           <[/COLOR]/table[COLOR= #007700]>
}[/COLOR]

[URL="http://www.php.net/else"]else[/URL] 
[COLOR= #007700]{[/COLOR]
          
    
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]
<table border="1 px" style="padding: 5px;">
                   <tr>
                           <td><h1> Fort </h1>
 
                            Level 12<br />
                            Upgradekosten: <br />
                            300 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            200 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            1000 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 24 &nbsp;&nbsp;<img src="http:// .eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 10 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                           </td>
                           <td align="center"><img src="http://www.eeros.nl/img/gebouwen/fort.png" alt=""  /></td>
                  </tr>
                        <td><h1> Barrack </h1>
                               Level 12<br />
                            Upgradekosten:<br /> 
                            80 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            100 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            100 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 0&nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/barrack.png" alt=""  /></td>              
                     <tr>
 
                        <td nowrap width="46%"><h1> Boerderij </h1>
                            Level 12<br />
                            Upgradekosten:<br />
                            80 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            100 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            100 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/boerderij.png" alt="" /></td>
                  </tr>
                  
                  <tr>
                        <td><h1> Boomhut </h1>
 
                            Level 12<br />
                            Upgradekosten: <br />
                            300 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            200 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            1000 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 24 &nbsp;&nbsp;<img src="http:// .eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 10 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/fort.png" alt=""  /></td>
             </tr>
           </table>
}

        </div>
    </div>
</div>[/COLOR][COLOR= #007700];

}[/COLOR]   
        [COLOR= #0000BB]$layout[/COLOR][COLOR= #007700]->[/COLOR]bottom[COLOR= #007700]();
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$layout[/COLOR][COLOR= #007700]->[/COLOR]top[COLOR= #007700]([/COLOR][COLOR= #DD0000]Er is een fout opgetreden. [/COLOR][COLOR= #007700]);[/COLOR]

        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U bent niet ingelogd, klik <a href="/inloggen ">hier</a> om in te loggen[/COLOR][COLOR= #007700];[/COLOR]
         [COLOR= #0000BB]$layout[/COLOR][COLOR= #007700]->[/COLOR]bottom[COLOR= #007700]();

}[/COLOR]
?>


met de volgende error:
Parse error: syntax error, unexpected T_STRING, expecting , or ; in /home/googleweet/domains/eeros.nl/public_html/bouwen2.php on line 84
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/**
 *
 * @author Rogier Fischer & Milan Drossaerts
 * @copyright 2010
 *
*/[/COLOR]

[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/config.php[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]is_ingelogd[COLOR= #007700]())

{[/COLOR]
    [COLOR= #0000BB]$layout[/COLOR][COLOR= #007700]->[/COLOR]top[COLOR= #007700]([/COLOR][COLOR= #DD0000]Bouwen: [/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div id="contentgedeelte">[/COLOR][COLOR= #007700];[/COLOR]
 
[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT
                ras
            FROM
                leden
            WHERE
                id = "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$lid_id[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
                
[COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]ras[COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ras[/COLOR][COLOR= #007700]]) ==[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700]) {[/COLOR]
          
    
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]
<table border="1 px" style="padding: 5px;">
                   <tr>
                           <td><h1> Fort </h1>
 
                            Level 12<br />
                            Upgradekosten: <br />
                            300 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            200 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            1000 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 24 &nbsp;&nbsp;<img src="http:// .eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 10 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                           </td>
                           <td align="center"><img src="http://www.eeros.nl/img/gebouwen/fort.png" alt=""  /></td>
                  </tr>
                        <td><h1> Barrack </h1>
                               Level 12<br />
                            Upgradekosten:<br />
                            80 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            100 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            100 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 0&nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/barrack.png" alt=""  /></td>              
                     <tr>
 
                        <td nowrap width="46%"><h1> Boerderij </h1>
                            Level 12<br />
                            Upgradekosten:<br />
                            80 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            100 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            100 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/boerderij.png" alt="" /></td>
                  </tr>
                  
                  <tr>
                        <td><h1> Boomhut </h1>
 
                            Level 12<br />
                            Upgradekosten: <br />
                            300 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            200 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            1000 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 24 &nbsp;&nbsp;<img src="http:// .eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 10 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/fort.png" alt=""  /></td>
             </tr>
           </table>[/COLOR][COLOR= #007700];
}[/COLOR]          
          
[URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]ras[COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ras[/COLOR][COLOR= #007700]]) ==[/COLOR] [COLOR= #DD0000]2[/COLOR][COLOR= #007700])
{[/COLOR]
          
    
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]
<table border="1 px" style="padding: 5px;">
                   <tr>
                           <td><h1> Fort </h1>
 
                            Level 12<br />
                            Upgradekosten: <br />
                            300 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            200 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            1000 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 24 &nbsp;&nbsp;<img src="http:// .eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 10 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                           </td>
                           <td align="center"><img src="http://www.eeros.nl/img/gebouwen/fort.png" alt=""  /></td>
                  </tr>
                        <td><h1> Barrack </h1>
                               Level 12<br />
                            Upgradekosten:<br />
                            80 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            100 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            100 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 0&nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/barrack.png" alt=""  /></td>              
                     <tr>
 
                        <td nowrap width="46%"><h1> Boerderij </h1>
                            Level 12<br />
                            Upgradekosten:<br />
                            80 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            100 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            100 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/boerderij.png" alt="" /></td>
                  </tr>
                  
                  <tr>
                        <td><h1> Boomhut </h1>
 
                            Level 12<br />
                            Upgradekosten: <br />
                            300 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            200 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            1000 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 24 &nbsp;&nbsp;<img src="http:// .eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 10 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/fort.png" alt=""  /></td>
             </tr>
           </table>[/COLOR][COLOR= #007700];
}[/COLOR]

[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
          
    
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]
<table border="1 px" style="padding: 5px;">
                   <tr>
                           <td><h1> Fort </h1>
 
                            Level 12<br />
                            Upgradekosten: <br />
                            300 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            200 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            1000 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 24 &nbsp;&nbsp;<img src="http:// .eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 10 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                           </td>
                           <td align="center"><img src="http://www.eeros.nl/img/gebouwen/fort.png" alt=""  /></td>
                  </tr>
                        <td><h1> Barrack </h1>
                               Level 12<br />
                            Upgradekosten:<br />
                            80 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            100 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            100 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 0&nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/barrack.png" alt=""  /></td>              
                     <tr>
 
                        <td nowrap width="46%"><h1> Boerderij </h1>
                            Level 12<br />
                            Upgradekosten:<br />
                            80 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            100 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            100 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 0 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/boerderij.png" alt="" /></td>
                  </tr>
                  
                  <tr>
                        <td><h1> Boomhut </h1>
 
                            Level 12<br />
                            Upgradekosten: <br />
                            300 hout &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/hout.png" alt=""  /><br />
                            200 steen &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/rock.png" alt=""  /><br />
                            1000 goud &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/gold.png" alt=""  /><br /><br />
                            Verdedigingswaarde: 24 &nbsp;&nbsp;<img src="http:// .eeros.nl/img/icons/schild.png" alt=""  /><br />
                            Uitkijkwaarde: 10 &nbsp;&nbsp;<img src="http://www.eeros.nl/img/icons/oog.png" alt=""  /><br />
                        </td>
                        <td align="center"><img src="http://www.eeros.nl/img/gebouwen/fort.png" alt=""  /></td>
             </tr>
           </table>[/COLOR][COLOR= #007700];
}[/COLOR]
      [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]
        </div>
    </div>
</div>[/COLOR][COLOR= #007700];

}[/COLOR]  
        [COLOR= #0000BB]$layout[/COLOR][COLOR= #007700]->[/COLOR]bottom[COLOR= #007700]();
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$layout[/COLOR][COLOR= #007700]->[/COLOR]top[COLOR= #007700]([/COLOR][COLOR= #DD0000]Er is een fout opgetreden. [/COLOR][COLOR= #007700]);[/COLOR]

        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U bent niet ingelogd, klik <a href="/inloggen ">hier</a> om in te loggen[/COLOR][COLOR= #007700];[/COLOR]
         [COLOR= #0000BB]$layout[/COLOR][COLOR= #007700]->[/COLOR]bottom[COLOR= #007700]();

}[/COLOR]
?>
0
Rogier

Lid · Topicstarter

Berichten
6.485
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
thanks
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