Cronjobs voetbalspel

Gestart doorOne2xs55 reacties91 weergaven

56 berichten · pagina 2 van 4

Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Wat lukt er niet aan die cronjob? Hoe stel jij deze in?
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Main.php
Spoiler tonen
[COLOR= #0000BB]<?
$sTitle[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Managershome[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]header.php[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]safe.php[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$aSoorten[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]L[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]Competitie[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]C[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]Beker[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$sQuery[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT * FROM messages WHERE `from` = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]" AND `nieuw` = 1[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$iResult[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$iMessages[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$sQuery1[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT * FROM competities WHERE id = [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$land[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$iResult1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery1[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$aLand[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult1[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aLand[/COLOR][COLOR= #007700]->[/COLOR]week [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]
    [COLOR= #0000BB]$sQuery2[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT * FROM kalender WHERE week = [/COLOR] [COLOR= #007700]. ([/COLOR][COLOR= #0000BB]$aLand[/COLOR][COLOR= #007700]->[/COLOR]week[COLOR= #007700]-[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000] AND land = [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$land[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$iResult2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery2[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$aVorigeWeek[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult2[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aVorigeWeek[/COLOR][COLOR= #007700]->[/COLOR]soort [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]) {[/COLOR]
        [COLOR= #0000BB]$sQuery3[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT * FROM matches WHERE land = [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$land[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000] AND (team1 = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$teamname[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]" OR team2 = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$teamname[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]") AND week = [/COLOR] [COLOR= #007700]. ([/COLOR][COLOR= #0000BB]$aLand[/COLOR][COLOR= #007700]->[/COLOR]week[COLOR= #007700]-[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$iResult3[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery3[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult3[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
            [COLOR= #0000BB]$aVorigeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult3[/COLOR][COLOR= #007700]);[/COLOR]
            [COLOR= #0000BB]$sVorigeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]
            <div class="team-1 cell"><div class="left"></div>[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aVorigeWedstrijd[/COLOR][COLOR= #007700]->[/COLOR]team1 [COLOR= #007700].[/COLOR] [COLOR= #DD0000]</div>
            <div class="result cell z-indent l"><div class="left"></div>[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aVorigeWedstrijd[/COLOR][COLOR= #007700]->[/COLOR]score1 [COLOR= #007700].[/COLOR] [COLOR= #DD0000] - [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aVorigeWedstrijd[/COLOR][COLOR= #007700]->[/COLOR]score2 [COLOR= #007700].[/COLOR] [COLOR= #DD0000]</div>
            <div class="team-2 cell"><div class="left"></div>[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aVorigeWedstrijd[/COLOR][COLOR= #007700]->[/COLOR]team2 [COLOR= #007700].[/COLOR] [COLOR= #DD0000]</div>[/COLOR][COLOR= #007700];
        }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
            [COLOR= #0000BB]$sVorigeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]<div class="team-1 cell"><div class="left"></div>Geen.</div>[/COLOR][COLOR= #007700];
        }
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$sVorigeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]<div class="team-1 cell"><div class="left"></div>Geen.</div>[/COLOR][COLOR= #007700];
    }
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    [COLOR= #0000BB]$sVorigeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]<div class="team-1 cell"><div class="left"></div>Geen.</div>[/COLOR][COLOR= #007700];
}[/COLOR]
[COLOR= #0000BB]$sQuery4[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT * FROM kalender WHERE week = [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aLand[/COLOR][COLOR= #007700]->[/COLOR]week[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$iResult4[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery4[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult4[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
    [COLOR= #0000BB]$aVolgendeWeek[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult4[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aVolgendeWeek[/COLOR][COLOR= #007700]->[/COLOR]soort [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$aVolgendeWeek[/COLOR][COLOR= #007700]->[/COLOR]soort [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]"P"[/COLOR][COLOR= #007700]) {[/COLOR]
            [COLOR= #0000BB]$sQuery4[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT * FROM matches WHERE land = [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$land[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000] AND (team1 = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$teamname[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]" OR team2 = "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$teamname[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]") AND week = [/COLOR] [COLOR= #007700]. ([/COLOR][COLOR= #0000BB]$aLand[/COLOR][COLOR= #007700]->[/COLOR]week[COLOR= #007700]);[/COLOR]
            [COLOR= #0000BB]$iResult4[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery4[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult4[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
                [COLOR= #0000BB]$aVolgendeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult4[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aVolgendeWedstrijd[/COLOR][COLOR= #007700]->[/COLOR]team1 [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$teamname[/COLOR][COLOR= #007700]) {[/COLOR]
                    [COLOR= #0000BB]$sVolgendeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]
                    <div class="type cell l"><div class="left"></div>[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aSoorten[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]$aVolgendeWeek[/COLOR][COLOR= #007700]->[/COLOR]soort[COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]</div>
                    <div class="team cell"><div class="left"></div>[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aVolgendeWedstrijd[/COLOR][COLOR= #007700]->[/COLOR]team2 [COLOR= #007700].[/COLOR] [COLOR= #DD0000]</div>
                    <div class="location cell"><div class="left"></div>Thuis</div>[/COLOR][COLOR= #007700];
                }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
                    [COLOR= #0000BB]$sVolgendeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]
                    <div class="type cell l"><div class="left"></div>[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aSoorten[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]$aVolgendeWeek[/COLOR][COLOR= #007700]->[/COLOR]soort[COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]</div>
                    <div class="team cell"><div class="left"></div>[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aVolgendeWedstrijd[/COLOR][COLOR= #007700]->[/COLOR]team1 [COLOR= #007700].[/COLOR] [COLOR= #DD0000]</div>
                    <div class="location cell"><div class="left"></div>Uit</div>[/COLOR][COLOR= #007700];
                }
            }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
                [COLOR= #0000BB]$sVolgendeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]<div class="type cell l"><div class="left"></div>Geen.</div>[/COLOR][COLOR= #007700];
            }
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$sVolgendeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]<div class="type cell l"><div class="left"></div>Geen.</div>[/COLOR][COLOR= #007700];
    }
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    [COLOR= #0000BB]$sVolgendeWedstrijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]<div class="type cell l"><div class="left"></div>Geen.</div>[/COLOR][COLOR= #007700];
}[/COLOR]
[COLOR= #0000BB]$sQuery6[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT name, position, geld, divisie, best_position FROM teams WHERE id = [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$teamid[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$iResult6[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery6[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$aTeam[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult6[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$sQuery7[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT name, ticket, stadionID, toeschouwers FROM stadions WHERE team_id = [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$teamid[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$iResult7[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery7[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$aStadion[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult7[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$sQuery8[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT * FROM financien WHERE team_id = [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$teamid[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$iResult8[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery8[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$aFinance[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult8[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$iUitgegeven[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aFinance[/COLOR][COLOR= #007700]->[/COLOR]spelers [COLOR= #007700]+[/COLOR] [COLOR= #0000BB]$aFinance[/COLOR][COLOR= #007700]->[/COLOR]stadion [COLOR= #007700]+[/COLOR] [COLOR= #0000BB]$aFinance[/COLOR][COLOR= #007700]->[/COLOR]personeel [COLOR= #007700]+[/COLOR] [COLOR= #0000BB]$aFinance[/COLOR][COLOR= #007700]->[/COLOR]andere[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$iVerwacht[/COLOR] [COLOR= #007700]= ([/COLOR][COLOR= #0000BB]$aFinance[/COLOR][COLOR= #007700]->[/COLOR]standaard [COLOR= #007700]+[/COLOR] [COLOR= #0000BB]$aFinance[/COLOR][COLOR= #007700]->[/COLOR]sponsors [COLOR= #007700]+[/COLOR] [COLOR= #0000BB]$aFinance[/COLOR][COLOR= #007700]->[/COLOR]toeschouwers[COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$aRondes[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]1/16e finale[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]1/8e finale[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]Kwartfinale[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]Halve finale[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]Finale[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$sQuery99[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT week FROM kalender WHERE land = [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$land[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$iResult99[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery99[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$iWeken[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult99[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$sQuery12[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT signature FROM users WHERE id = [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$iResult12[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery12[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$aObject12[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult12[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aObject12[/COLOR][COLOR= #007700]->[/COLOR]signature [COLOR= #007700]==[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700])[/COLOR] [COLOR= #0000BB]$sSig[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]noimage.jpg[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #0000BB]$sSig[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]signatures/[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aObject12[/COLOR][COLOR= #007700]->[/COLOR]signature[COLOR= #007700];[/COLOR]
?>
                <!-- Image (style="width:{image_width + 6}px") -->
                <div class="image-box" id="team-image" style="width:106px;margin-bottom:2px;">
                    <div class="top"><div class="box-row-1"><div class="inside"></div></div><div class="box-row-2"></div></div>
                    <div class="bottom"><div class="box-row-2"></div><div class="box-row-1"><div class="inside"></div></div></div>
                    <img src="images/<?=$sSig?>" alt="" style="width: 100px; height: 100px;" />
                </div>
                
                <!-- Managers home -->
                <div class="block margin" id="managers-home">
                    <h3><span class="left"></span>Managers home</h3>
                    <div class="padding">
                        <div class="cell-block l">
                            <div class="top"><div class="cell-row-1"></div><div class="cell-row-2"></div></div>
                            <div class="content">
                                <p>Welkom terug <strong><a href="profile.php"><?=$username?></a></strong>!</p>
                                <p>We hebben na je vertrek <strong><a href="pm.php"><?=$iMessages?> nieuwe berichten</a></strong> ontvangen.</p>
                            </div>
                            <div class="bottom"><div class="cell-row-2"></div><div class="cell-row-1"></div></div>
                        </div>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>
                
                <!-- Financial status -->
                <div class="block margin" id="financial-status">
                    <h3><span class="left"></span>Financi&euml;le status</h3>
                    <div class="padding">
                        <dl>
                            <dt><span class="cell l"><span class="left"></span>Geld in kas:</span></dt>
                            <dd><span class="cell"><span class="left"></span>&euro; <?=number_format($aTeam->geld, 0, ,, .)?>,-</span></dd>
                            <dt><span class="cell l"><span class="left"></span>Uitgaven deze week:</span></dt>
                            <dd><span class="cell"><span class="left"></span>&euro; <?=number_format($iUitgegeven, 0, ,, .)?>,-</span></dd>
                            <dt><span class="cell l"><span class="left"></span>Inkomsten deze week:</span></dt>
                            <dd><span class="cell"><span class="left"></span>&euro; <?=number_format($iVerwacht, 0, ,, .)?>,-</span></dd>
                        </dl>
                        <div class="clear"></div>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>
                
                <div class="clear"></div>    
                
                <!-- Last game -->
                <div class="block margin" id="last-game">
                    <h3><span class="left"></span>Vorige wedstrijd</h3>
                    <div class="padding">
                        <ul>
                            <li>
                                <?=$sVorigeWedstrijd?>
                            </li>
                        </ul>
                        <div class="clear"></div>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>
                
                <!-- Next game -->
                <div class="block margin" id="next-game">
                    <h3><span class="left"></span>Volgende wedstrijd</h3>
                    <div class="padding">
                        <ul>
                            <li>
                                <?=$sVolgendeWedstrijd?>
                            </li>
                        </ul>
                        <div class="clear"></div>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>
                
                <div class="clear"></div>
                
                <!-- League info -->
                <div class="block" id="league-info">
                    <h3><span class="left"></span>Competitie informatie</h3>
                    <div class="padding">
                        <dl>
                            <dt><span class="cell l"><span class="left"></span>Divisie:</span></dt>
                            <dd><span class="cell"><span class="left"></span><?=$aTeam->divisie?>e divisie</span></dd>
                            <dt><span class="cell l"><span class="left"></span>Week:</span></dt>
                            <dd><span class="cell"><span class="left"></span><?=$aLand->week?> van de <?=$iWeken?></span></dd>
                            <dt><span class="cell l"><span class="left"></span>Beker:</span></dt>
                            <dd><span class="cell"><span class="left"></span><?=$aRondes[$aLand->cup]?></span></dd>
                        </dl>
                        <div class="clear"></div>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>
                
                <!-- Team info -->
                <div class="block" id="team-info">
                    <h3><span class="left"></span>Team informatie</h3>
                    <div class="padding">
                        <dl>
                            <dt><span class="cell l"><span class="left"></span>Team:</span></dt>
                            <dd><span class="cell"><span class="left"></span><?=$aTeam->name?></span></dd>
                            <dt><span class="cell l"><span class="left"></span>Stadion:</span></dt>
                            <dd>
                                <span class="stadium cell"><span class="left"></span><?=$aStadion->name?></span>
                                <span class="edit l cell"><span class="left"></span><a href="stadium.php"><img src="images/edit.png" alt="Edit" /></a></span>
                            </dd>
                        </dl>
                        <div class="clear"></div>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>
                
                <!-- Performance -->
                <div class="block" id="performance">
                    <h3><span class="left"></span>Prestaties</h3>
                    <div class="padding">
                        <dl>
                            <dt><span class="cell l"><span class="left"></span>Huidigerank:</span></dt>
                            <dd><span class="cell z-indent center"><span class="left"></span><?=$aTeam->position?></span></dd>
                            <dt><span class="cell l"><span class="left"></span>Beste notering:</span></dt>
                            <dd><span class="stadium z-indent center cell"><span class="left"></span><?=$aTeam->best_position?></span></dd>
                        </dl>
                        <div class="clear"></div>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]bottom.php[/COLOR][COLOR= #007700];[/COLOR]
?>
Wat er niet lukt aan de cronjob?
Ik heb gewoon tutorial gevolgd op de link die je me stuurde, Aarclay, maar dat werkt ook niet.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Hoe heb je die cron dan toegevoegd? Hoe ziet het cronbestand die je uit wilt voeren er dan uit qua includes?
Wat gebeurt er als je je hoofdmailbox bekijkt, waar je cron-resultaten standaard op binnenkomen? (iig bij DirectAdmin)...
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Aarclay schreef:
Hoe heb je die cron dan toegevoegd? Hoe ziet het cronbestand die je uit wilt voeren er dan uit qua includes?
Wat gebeurt er als je je hoofdmailbox bekijkt, waar je cron-resultaten standaard op binnenkomen?
Hmm, kan ik jou misschien de gegevens van de host sturen? Dat je er naar kan kijken voor een beloning? wink
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jochems schreef:
toevoeging op 11 juni 2012, 12:59:20:
Desire schreef:
Ik zit er gewoon in, alleen als je op een menu item klikt, dan blijft hij op serverlist.html
Screen?
Spoiler tonen
Afbeelding
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Desire schreef:
Eerdere citaten tonen
Jochems schreef:
toevoeging op 11 juni 2012, 12:59:20:
Eerdere citaten tonen
Desire schreef:
Ik zit er gewoon in, alleen als je op een menu item klikt, dan blijft hij op serverlist.html
Screen?
Spoiler tonen
Afbeelding
L0L, nogsteeds? redfaceWelke browser?
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jochems schreef:
Eerdere citaten tonen
Desire schreef:
Eerdere citaten tonen
Jochems schreef:
toevoeging op 11 juni 2012, 12:59:20:
Eerdere citaten tonen
Desire schreef:
Ik zit er gewoon in, alleen als je op een menu item klikt, dan blijft hij op serverlist.html
Screen?
Spoiler tonen
Afbeelding
L0L, nogsteeds? redfaceWelke browser?

Opera.

Ja nu nog.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Jochems schreef:
Eerdere citaten tonen
Aarclay schreef:
Hoe heb je die cron dan toegevoegd? Hoe ziet het cronbestand die je uit wilt voeren er dan uit qua includes?
Wat gebeurt er als je je hoofdmailbox bekijkt, waar je cron-resultaten standaard op binnenkomen?

Hmm, kan ik jou misschien de gegevens van de host sturen? Dat je er naar kan kijken voor een beloning? wink
Kan je niet even zeggen hoe jij de cronjob uitvoert? Mogelijk is deze verkeerd?
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Aarclay schreef:
Eerdere citaten tonen
Jochems schreef:
Eerdere citaten tonen
Aarclay schreef:
Hoe heb je die cron dan toegevoegd? Hoe ziet het cronbestand die je uit wilt voeren er dan uit qua includes?
Wat gebeurt er als je je hoofdmailbox bekijkt, waar je cron-resultaten standaard op binnenkomen?

Hmm, kan ik jou misschien de gegevens van de host sturen? Dat je er naar kan kijken voor een beloning? wink
Kan je niet even zeggen hoe jij de cronjob uitvoert? Mogelijk is deze verkeerd?
Ik heb
/usr/local/bin/php -q -f /home/wezy/domains/wezy.nl/public_html/serverlist.php geprobeerd, en
/home/wezy/serverlist.php, en public_html/serverlist.php.

Minute 0, hour 0 (Hij moet om 00:00 uitvoeren) en de rest *
0
Berichten
3.037
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@hierboven.
Je moet 23 uur en 59 minuten doen en bij de rest * dan gaat die om de 24 uur.
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Videotube schreef:
@hierboven.
Je moet 23 uur en 59 minuten doen en bij de rest * dan gaat die om de 24 uur.
Nee, dan gaatie om 23 uur en 59 minuten.
Wie heeft er ervaring met dit voetbalscript?
0
Berichten
3.037
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
23uur en 59 minuten is toch bijna hetzelfde als 24uur?

edit: dan doe je ook 59 seconden..
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Hoevaak wil je de cron uitvoeren? Om 0.00 uur elke dag?

0 0 * * *

Heb je na het uitvoeren van de cron al in je hoofdmailbox gekeken, waarmee je met je Directadmin-inlog inlogt in je webmail wink?
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Aarclay schreef:
Hoevaak wil je de cron uitvoeren? Om 0.00 uur elke dag?

0 0 * * *

Heb je na het uitvoeren van de cron al in je hoofdmailbox gekeken, waarmee je met je Directadmin-inlog inlogt in je webmail wink?
is dat nodig dan? redface
toevoeging op 11 juni 2012, 13:40:11:
Ik zie het, allemaal mails van Cron Daemon.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Jochems schreef:
Eerdere citaten tonen
Aarclay schreef:
Hoevaak wil je de cron uitvoeren? Om 0.00 uur elke dag?
0 0 * * *

Heb je na het uitvoeren van de cron al in je hoofdmailbox gekeken, waarmee je met je Directadmin-inlog inlogt in je webmail wink?

is dat nodig dan? redface
Als je wilt debuggen is dat wel verstandig...
Wat staat er in die mailtjes, is het gelukt?
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