Vraag config.php

Gestart doorVadid25 reacties48 weergaven

26 berichten · pagina 1 van 2

Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kan iemand me even snel vertellen wat ik verkeerd doe? Heb amper verstand van PhP, en vind het een beetje onduidelijk.. bloos
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Haal die vreemde tekens eens weg
0
Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Luukvdo: Indd, al een stuk beter! Nu nog de kleine errors..

toevoeging op 11 december 2012, 13:21:38:
Steeds over de mysql_num_rows(): , hoe los ik dat op?
0
Berichten
6.201
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Vadid schreef:
@Luukvdo: Indd, al een stuk beter! Nu nog de kleine errors..

Preview: http://twissy.rapifia.nl/
toevoeging op 11 december 2012, 13:21:38:
Steeds over de mysql_num_rows(): , hoe los ik dat op?

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/twissy/domains/twissy.rapifia.nl/public_html/index.php on line 34

Dan hebben we dus niets aan je config.php, maar hebben we je index.php regel 34 nodig
0
Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kjeld schreef:
Eerdere citaten tonen
Vadid schreef:
@Luukvdo: Indd, al een stuk beter! Nu nog de kleine errors..
Preview: http://twissy.rapifia.nl/

toevoeging op 11 december 2012, 13:21:38:
Steeds over de mysql_num_rows(): , hoe los ik dat op?

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/twissy/domains/twissy.rapifia.nl/public_html/index.php on line 34

Dan hebben we dus niets aan je config.php, maar hebben we je index.php regel 34 nodig
Ik weet niet wat jij niet ziet op de website, maar ik (Parse error: syntax error, unexpected ; in /home/twissy/domains/twissy.rapifia.nl/public_html/header.php on line 60) en een witte pagina.

Quote:

[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL] [COLOR= #DD0000]config.php[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL] [COLOR= #DD0000]functions.php[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR]is_loggedin[COLOR= #007700]()) {[/COLOR]
    [COLOR= #0000BB]$aPages[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]/news.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/serverlist.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/info.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/profile.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/pm.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/changeprofile.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/premium.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/budget.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/pay.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/logout.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/admin_news.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/admin_userlist.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/admin_serverreset.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/admin_playmatches.php[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]/jointeam.php[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$sQuery[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT * FROM users WHERE id = [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/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]$aObject[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]verwijderd [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]6[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]/logout.php[/COLOR][COLOR= #007700]) {[/COLOR]
        [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]location: logout.php[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]ban [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]0[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]/logout.php[/COLOR][COLOR= #007700]) {[/COLOR]
        [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]location: logout.php[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
    }[/COLOR]
    [COLOR= #0000BB]$sQueryB[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]UPDATE users SET lastactive = NOW() WHERE id = [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]id[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$iResultB[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQueryB[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]name[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$teamid[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]teamID[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$land[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]competitie[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$rank[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]rank[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$premium[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]premium[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$premiumdagen[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]premiumdagen[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]echte_naam[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject[/COLOR][COLOR= #007700]->[/COLOR]email[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$sQueryC[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT simuleren FROM competities WHERE id = [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$land[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$iResultC[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQueryC[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$aObjectC[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResultC[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aObjectC[/COLOR][COLOR= #007700]->[/COLOR]simuleren [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]1[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]/logout.php[/COLOR][COLOR= #007700]) {[/COLOR]
        [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]location: logout.php[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
    }[/COLOR]
    [COLOR= #0000BB]$sQueryA[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT bezig FROM opties[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$iResultA[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQueryA[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$aObjectA[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResultA[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$aObjectA[/COLOR][COLOR= #007700]->[/COLOR]bezig [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]1[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$rank[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]admin[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]/logout.php[/COLOR][COLOR= #007700]) {[/COLOR]
        [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]location: logout.php[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/in_array"]in_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$aPages[/COLOR][COLOR= #007700]) ==[/COLOR] FALSE [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$teamid[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])[/COLOR] [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"location: serverlist.php"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$teamid[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
        [COLOR= #0000BB]$sQuery1[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT name, formation, style, geld, position FROM teams WHERE id = [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$teamid[/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] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
        [COLOR= #0000BB]$aObject1[/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]
        [COLOR= #0000BB]$teamname[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject1[/COLOR][COLOR= #007700]->[/COLOR]name[COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$formation[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject1[/COLOR][COLOR= #007700]->[/COLOR]formation[COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$stijl[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject1[/COLOR][COLOR= #007700]->[/COLOR]style[COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$geld[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject1[/COLOR][COLOR= #007700]->[/COLOR]geld[COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$position[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$aObject1[/COLOR][COLOR= #007700]->[/COLOR]position[COLOR= #007700];
    }[/COLOR]

    [COLOR= #0000BB]$sQuery9[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT id FROM messages WHERE nieuw = 1 AND `from` = "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$username[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$iResult9[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery9[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$sNieuw[/COLOR] [COLOR= #007700]= ([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult9[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) ?[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000] <strong>([/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult9[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000])</strong>[/COLOR][COLOR= #007700];
}[/COLOR]
[COLOR= #0000BB]$sQuery2[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT * FROM users[/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]$iAantal[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iResult2[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$sQuery3[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]SELECT * FROM users WHERE DATE_SUB(NOW(),INTERVAL 5 MINUTE) <= lastactive ORDER BY name ASC[/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]
[COLOR= #0000BB]$iAantalOnline[/COLOR] [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]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>OnlineVoetbalTrainer - <?=$sTitle?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]>
<link type="text/css" rel="stylesheet" href="style-ie6.css" media="screen, projection" />
<![endif]-->
<script language="javascript" src="http://www.mollie.nl/partners/js/555277.js"> </script>
</head>
<body[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR]is_loggedin[COLOR= #007700]())[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000] onload="getTime()"[/COLOR][COLOR= #007700];[/COLOR]?>>
<div id="logo"></div>
    <!-- Website -->
    <div id="website">
        <div id="website-top"></div>
        <div id="website-inner">

            [COLOR= #0000BB]<?[/COLOR]
            [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR]is_loggedin[COLOR= #007700]()) {[/COLOR]
            ?>
            <!-- Menu left -->
            <div id="menu-left" class="">
                <div class="corner"><h1>OnlineVoetbalTrainer</h1></div>

                <div class="block margin">
                    <h3><span class="left"></span>Algemeen</h3>
                    <div class="padding">
                        <ul>
                            <li><div class="cell"><div class="left"></div><a href="main.php">Managers home</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="forum/">Forum</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="info.php">Uitleg</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="news.php">Nieuws</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="contact.php">Contact</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="logout.php">Uitloggen</a></div></li>
                        </ul>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>

                <div class="block margin">
                    <h3><span class="left"></span>Profiel</h3>
                    <div class="padding">
                        <ul>
                            <li><div class="cell"><div class="left"></div><a href="profile.php">Mijn profiel</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="changeprofile.php">Profiel veranderen</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="pm.php">Mijn berichten</a><?=$sNieuw?></div></li>
                            <li><div class="cell"><div class="left"></div><a href="premium.php">Club eigenaar</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="budget.php">Budget verhogen</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="resign.php">Ontslag nemen</a></div></li>
                        </ul>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>

                <div class="block margin">
                    <h3><span class="left"></span>Competitie</h3>
                    <div class="padding">
                        <ul>
                            <li><div class="cell"><div class="left"></div><a href="scoreboard.php">Scorebord</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="league.php">Stand</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="results.php">Uitslagen</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="schedule.php">Kalender</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="topscore.php">Topscorers</a></div></li>
                        </ul>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>

                <div class="block margin">
                    <h3><span class="left"></span>Team</h3>
                    <div class="padding">
                        <ul>
                            <li><div class="cell"><div class="left"></div><a href="team.php">Mijn team</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="lineup.php">Opstelling</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="specialists.php">Specialisten</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="training.php">Training</a></div></li>
                        </ul>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>

                <div class="block margin">
                    <h3><span class="left"></span>Transfers</h3>
                    <div class="padding">
                        <ul>
                            <li><div class="cell"><div class="left"></div><a href="transferlist.php">Transferlijst</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="teamtransfers.php">Transfers mijn team</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="leaguetransfers.php">Transfers competitie</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="offers.php">Biedingen</a></div></li>
                        </ul>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>

                <div class="block margin">
                    <h3><span class="left"></span>Club</h3>
                    <div class="padding">
                        <ul>
                            <li><div class="cell"><div class="left"></div><a href="stadium.php">Stadion</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="staff.php">Personeel</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="sponsors.php">Sponsors</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="finance.php">Financi&euml;n</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="scout.php">Scout</a></div></li>
                        </ul>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>
                [COLOR= #0000BB]<?[/COLOR]
                [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$rank[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]user[/COLOR][COLOR= #007700]) {[/COLOR]
                ?>
                <div class="block margin">
                    <h3><span class="left"></span>Admin</h3>
                    <div class="padding">
                        <ul>
                            <li><div class="cell"><div class="left"></div><a href="admin_news.php">Nieuws berichten</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="admin_userlist.php">Gebruikers</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="admin_competitions.php">Competities bekijken</a></div></li>
                            [COLOR= #0000BB]<?[/COLOR]
                            [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$rank[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]admin[/COLOR][COLOR= #007700]) {[/COLOR]
                            ?>
                            <li><div class="cell"><div class="left"></div><a href="admin_serverreset.php">Competities resetten</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="admin_addcompetition.php">Competitie toevoegen</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="admin_playmatches.php">Wedstrijden simuleren</a></div></li>
                            [COLOR= #0000BB]<?[/COLOR]
                            [COLOR= #007700]}[/COLOR]
                            ?>
                        </ul>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>
                [COLOR= #0000BB]<?[/COLOR]
                [COLOR= #007700]}[/COLOR]
                ?>

            <!-- end Menu left -->
            </div>

            <!-- Content -->
            <div id="content">

                <img class="banner" src="images/topcoach.jpg" alt="Registreer je nu!" />
            [COLOR= #0000BB]<?[/COLOR]
            [COLOR= #007700]}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
            ?>
            <script type="text/javascript">
            function getTime() {
                date = new Date();
                hour = date.getHours();
                minute = date.getMinutes();
                second = date.getSeconds();
                if (second < 10) second = 0 + second;
                if (minute < 10) minute = 0 + minute;
                document.getElementById(time).innerHTML = <span class="left"></span> + hour + : + minute + : + second;
                t = setTimeout(getTime(), 1000);
            }
            </script>
            <!-- Menu left -->
            <div id="menu-left" class="">
                <!-- Login -->
                <div class="block margin" id="login">
                    <h3><span class="left"></span>Inloggen</h3>
                    <div class="padding">
                        <form action="login.php" method="post">
                            <fieldset>
                                <label for="login-username"><span class="cell l"><span class="left"></span><img src="images/username.png" alt="username" /></span></label>
                                <div class="input-text-wrapper">
                                    <div class="left"></div>
                                    <div class="i"><input name="username" type="text" id="login-username" value="Gebruikersnaam" onfocus="if (this.value == Gebruikersnaam) this.value = ;" onblur="if (this.value == ) this.value = Gebruikersnaam" /></div>
                                    <div class="right"></div>
                                </div>
                                <div class="clear"></div>
                                <label for="login-password"><span class="cell l"><span class="left"></span><img src="images/password.png" alt="username" /></span></label>
                                <div class="input-text-wrapper">
                                    <div class="left"></div>
                                    <div class="i"><input name="password" type="password" id="login-password" value="Password" onfocus="if (this.value == Password) this.value = ;" onblur="if (this.value == ) this.value = Password" /></div>
                                    <div class="right"></div>
                                </div>
                                <div class="clear"></div>
                                <span id="login-button" class="cell l center"><span class="left"></span><strong>Inloggen</strong><input type="submit" name="inloggen" value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" /></span>
                            </fieldset>
                        </form>
                        <div class="clear"></div>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>

                <!-- Menu -->
                <div class="block margin">
                    <h3><span class="left"></span>Menu</h3>
                    <div class="padding">
                        <ul>
                            <li><div class="cell"><div class="left"></div><a href="index.php">Homepagina</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="info.php">Uitleg</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="news.php">Nieuws</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="register.php">Registreren</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="advert.php">Adverteren</a></div></li>
                            <li><div class="cell"><div class="left"></div><a href="contact.php">Contact</a></div></li>
                        </ul>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>

                <!-- Stats -->
                <div class="block margin" id="stats">
                    <h3><span class="left"></span>Statistieken</h3>
                    <div class="padding">
                        <dl class="list">
                            <dt><span class="cell l"><span class="left"></span>Server tijd</span></dt>
                            <dd><span class="cell" id="time"><span class="left"></span></span></dd>
                            <dt><span class="cell l"><span class="left"></span>Aantal managers</span></dt>
                            <dd><span class="cell"><span class="left"></span><?=number_format($iAantal, 0, ,, .)?></span></dd>
                            <dt><span class="cell l"><span class="left"></span>Managers online</span></dt>
                            <dd><span class="cell"><span class="left"></span><?=number_format($iAantalOnline, 0, ,, .)?></span></dd>
                        </dl>
                        <div class="clear"></div>
                    </div>
                    <div class="bottom"><div class="row-1"></div><div class="row-2"></div></div>
                </div>

                <!-- Advertention -->
                <div class="advertentie">
                    <a href="http://v-bal.nl/" target="_blank"><img src="images/vbalstinkert.jpg" alt="V-bal" /></a>
                </div>

            <!-- end Menu left -->
            </div>

            <!-- Content -->
            <div id="content">

                <a href="register.php"><img class="banner" src="images/register-now.jpg" alt="Registreer je nu!" /></a>
            [COLOR= #0000BB]<?[/COLOR]
            [COLOR= #007700]}[/COLOR]
            ?>


Ik vertrouw dat jullie er niet mee kloten. swhip
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Niet uitgetest, maar ik zie geen fout in dit deel......
(overigens is het script wel erg inefficient gescript zeg shutup)
0
Berichten
6.201
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Vooral dit:

$sQuery2 = SELECT * FROM users;
$iResult2 = mysql_query($sQuery2);
$iAantal = mysql_num_rows($iResult2);

Waarom niet zo:

$result = mysql_query("SELECT 1 FROM users");
$aantal = mysql_num_rows($result);

ofzo emo
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
(overigens is het script wel erg inefficient gescript zeg shutup)
Indd, ook echt 3 SELECT * FROM users onder elkaar. emo
Om nog maar over de onoverzichtelijkheid te zwijgen (waarom $aObject->rank in $rank stoppen??).

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/twissy/domains/twissy.rapifia.nl/public_html/header.php on line 60

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/twissy/domains/twissy.rapifia.nl/public_html/header.php on line 63

Dat zijn de errors. Zorg eens dat je de mysql_error() te zien krijgt, dan weet je wat er fout gaat.
0
Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hihi.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Vadid schreef:
Ja, ik heb het zelf niet gescript, ik heb er ook amper verstand van..

@Lennard: hoe verhelp ik die errors?

60: $iAantal = mysql_num_rows($iResult2);
63: $iAantalOnline = mysql_num_rows($iResult3);
Lennard schreef:
Dat zijn de errors. Zorg eens dat je de mysql_error() te zien krijgt, dan weet je wat er fout gaat.
Je kan snel dit:
$iResult2 = mysql_query($sQuery2);
vervangen door dit:
$iResult2 = mysql_query($sQuery2) or die(mysql_error());

en de error hier posten.

Wel weer op tijd weghalen voordat Aarclay terug is redface
toevoeging op 11 december 2012, 14:01:56:
op regel 59 is dat
0
Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
Eerdere citaten tonen
Vadid schreef:
Ja, ik heb het zelf niet gescript, ik heb er ook amper verstand van..
@Lennard: hoe verhelp ik die errors?

60: $iAantal = mysql_num_rows($iResult2);
63: $iAantalOnline = mysql_num_rows($iResult3);
Eerdere citaten tonen
Lennard schreef:
Dat zijn de errors. Zorg eens dat je de mysql_error() te zien krijgt, dan weet je wat er fout gaat.
Je kan snel dit:
$iResult2 = mysql_query($sQuery2);
vervangen door dit:
$iResult2 = mysql_query($sQuery2) or die(mysql_error());

en de error hier posten.

Wel weer op tijd weghalen voordat Aarclay terug is redface
toevoeging op 11 december 2012, 14:01:56:
op regel 59 is dat
Gereed, haha.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
yummieEn wat was de error nou?

Ik gok met de verkeerde db verbonden of met helemaal geen db.
0
Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
yummieEn wat was de error nou?

Ik gok met de verkeerde db verbonden of met helemaal geen db.
Geen idee, heb een goede db etc, momenteel is de enige bug nog een paar kleine foutjes in de header.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Je errors zijn er nog steeds toch?

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/twissy/domains/twissy.rapifia.nl/public_html/header.php on line 60

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/twissy/domains/twissy.rapifia.nl/public_html/header.php on line 63
0
Vadid

Lid · Topicstarter

Berichten
2.318
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
Je errors zijn er nog steeds toch?

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/twissy/domains/twissy.rapifia.nl/public_html/header.php on line 60

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/twissy/domains/twissy.rapifia.nl/public_html/header.php on line 63
Ja, maar niet dat de gehele website weg is zoals net.

Die errors, en die bij de nieuws en regristratie ga ik niet verhelpen. Proberen althans. Denk ik. Hoop ik. emo
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