Filtering bij een stats script

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Angelo Kreikamp

Angelo Kreikamp

01/01/2009 21:21:00
Quote Anchor link
Hallo ik zit nogal in de knoop om bij dit stats script
3 namen wil ik dat hij niet laat zien in stats ook al hebben ze een hoge level
dat hij ze zegmaar niet meerekent in stats maar ook niet laat zien maar dat hij dan gewoon de volgende beste speler pakt
ik wil de volgende namen niet zien
Remy
Shadow
Angelo

hoe laat ik die niet zien kan iemand een voorbeeld posten
of mij helpen alvast bedankt





Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>BlizzHell</title>
<style type="text/css">
<!--
body,td,th {
    font-size: 12px;
    color: #FFCC00;
    line-height: 20px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #000000;
    background-image: url(images/bg.jpg);
    background-repeat: repeat-x;
}
a.a1:link {
    color: #FFCC00;
    text-decoration: none;
}
a.a1:visited {
    text-decoration: none;
    color: #FFCC00;
}
a.a1:hover {
    text-decoration: none;
    color: #FFFFFF;
}
a.a1:active {
    text-decoration: none;
    color: #FFCC00;
}
a.a2:link {
    color: #66CCFF;
    text-decoration: none;
}
a.a2:visited {
    text-decoration: none;
    color: #66CCFF;
}
a.a2:hover {
    text-decoration: none;
    color: #FFFFFF;
}
a.a2:active {
    text-decoration: none;
    color: #66CCFF;
}
.STYLE7 {color: #66CCFF; font-weight: bold; }
.STYLE9 {color: #FFCC00; font-weight: bold; }
.STYLE11 {color: #999999}
.style13 {color: #FF0000}
.style14 {
    font-size: medium;
    font-style: italic;
}
.style18 {font-style: italic}
.style19 {
    color: #FFFFFF;
    font-style: italic;
}
.style20 {
    color: #00FF00;
    font-style: italic;
}
-->
</style></head>

<body>
<table width="1001" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>

        <td width="273" height="109" background="images/h_01.jpg"><img src="images/h_20.jpg" alt="" width="251" height="71" /></td>
        <td colspan="2" background="images/h_02.jpg"><div align="center"><img src="images/h_01.png" alt="" width="467" height="100" /></div></td>
        </tr>
      <tr>
        <td height="107" background="images/h_03.jpg">&nbsp;</td>
        <td width="464" background="images/h_04.jpg"><table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="center" valign="top" class="a1 style13"><span class="a1 style11 style14">~ 666 ~ The Devil Comes Back ~ 666 ~</span></td>

          </tr>
        </table></td>
        <td width="264" background="images/h_05.jpg">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top" background="images/h_18.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="19" background="images/h_06.jpg"></td>
          </tr>

          <tr>
            <td height="141" valign="top" background="images/h_10.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="13%">&nbsp;</td>
                <td width="9%"><img src="images/arrow-right.gif" width="20" height="17" /></td>
                <td width="61%" align="left"><span class="STYLE7"><a href="http://86.90.8.128/BlizzHell/index.html" class="a2">Home</a></span></td>
                <td width="17%">&nbsp;</td>
              </tr>

              <tr>
                <td>&nbsp;</td>
                <td><img src="images/arrow-right.gif" width="20" height="17" /></td>
                <td align="left"><span class="STYLE7"><a href="http://86.90.8.128/BlizzHell/register.html" class="a2">Register</a></span></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>

                <td><img src="images/arrow-right.gif" width="20" height="17" /></td>
                <td align="left"><span class="STYLE7"><a href="http://87.211.169.21/Stats.php" class="a2"><strong>Stats</strong></a><a href="stats.html" class="a2"></a></span></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><img src="images/arrow-right.gif" width="20" height="17" /></td>
                <td align="left"><span class="STYLE7"><a href="http://86.90.8.128/BlizzHell/guide.html" class="a2">Guide</a></span></td>

                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><img src="images/arrow-right.gif" width="20" height="17" /></td>
                <td align="left"><span class="STYLE7"><a href="http://86.90.8.128/BlizzHell/rules.html" class="a2">Rules</a></span></td>
                <td>&nbsp;</td>
              </tr>

              <tr>
                <td>&nbsp;</td>
                <td><img src="images/arrow-right.gif" width="20" height="17" /></td>
                <td align="left"><span class="STYLE7"><a href="http://86.90.8.128/BlizzHell/staff.html" class="a2">Staff</a></span></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>

                <td><img src="images/arrow-right.gif" alt="" width="20" height="17" /></td>
                <td align="left"><span class="STYLE7"><a href="http://www.forum.blizzhell.nl.tt" class="a2">Forum</a></span></td>
                <td>&nbsp;</td>
              </tr>
              
              <tr>
                <td>&nbsp;</td>
                <td><img src="images/arrow-right.gif" width="20" height="17" /></td>
                <td align="left"><span class="STYLE7"><a href="http://86.90.8.128/BlizzHell/contact.html" class="a2">Contact</a></span></td>

                <td>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="29" background="images/h_11.jpg">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>

          </tr>
          <tr>
            <td height="19" background="images/h_06.jpg"></td>
          </tr>
          <tr>
            <td height="141" valign="top" background="images/h_10.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="15%">&nbsp;</td>
                <td width="9%" align="left"><img src="images/arrow-right.gif" width="20" height="17" /></td>

                <td width="59%" align="left"><span class="STYLE7">BlizzHell Vote!</span></td>
                <td width="17%">&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td colspan="2" align="left">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>

                      <td><p><em><br /></em><em>BlizzHell support by voting. The more votes we get the higher we in the rankings. <br />
The higher we in the rankings<br />
the more members we get! </em></p>
                        <p><em>If you clicked see votes in a moment you think there is a <br />
                          new window is opened. Enter code and click with your mouse on votes. So much work is not therefore support BlizzHell free!</em><br />
                          <br />
                        </p>

                        </td>
                    </tr>
                    <tr>
                      <td height="37" align="center"><input onclick="window.location.href='http://www.gamesites200.com/wowprivate/in.php?id=5128'" type="submit" value="Vote!" name="Submit" />
                        <br />
                        <br />
                        <!--Begin GameSites200 Vote-->
                        <p><a href="http://www.gamesites200.com/wowprivate/in.php?id=5128"><img src="http://www.gamesites200.com/wowprivate/vote.gif" alt="Vote on the World of Warcraft Private Servers Top 200" border="0" /></a><br />
                          <br />
                        </p></td>
                    </tr>
                  </table>                 </td>
                <td>&nbsp;</td>
              </tr>

            </table></td>
          </tr>
          <tr>
            <td height="29" background="images/h_11.jpg">&nbsp;</td>
          </tr>
          
        </table></td>
        <td colspan="2" valign="top" background="images/h_19.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          
          <tr>

            <td width="728" height="64" background="images/h_07.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="14%" height="38">&nbsp;</td>
                  <td width="74%" valign="bottom"><div align="center"><span class="style18"><strong>~ Stats</strong> ~</span></div></td>
                  <td width="12%">&nbsp;</td>
                </tr>
            </table></td>

          </tr>
          <tr>
            <td height="192" background="images/h_13.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="6%">&nbsp;</td>
                  <td width="92%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="55" align="center" valign="bottom"><p align="center"><em><br />
                        Here you can see the stats of BlizzHell, immediately <br />

                        below 2 link, if you get one of the links is clicked, a new <br />
                        window opens. Are you not sure if you gebanned am <br />
                        Click banned, so you can see who is gebanned and if you <br />
                        click online players you see who is online. Have fun!<br />
                        <br />
                        BlizzHell Stats,<br />

                        <a href="Http://xxxxxxxxx/Stats/PlayersOnline.php" class="style13">~ Online Players ~</a><br />
                        <a href="http://xxxxxxx/Stats/Banned.php" class="style13">~ Banned ~</a></em><br />
                          <br />
                        </p>                        </td>
                    </tr>
                    <tr>
                      <td height="55" align="center" valign="bottom">                        <p><br />
                                              <em><span class="style20">The Best 3 Players:</span><br />
                                              <br />
                                <?PHP

 

$host
= "localhost";

$user = "root";

$pass = "xxxxx";

$db = "xxxxxx";

 

$conn = mysql_connect($host, $user, $pass) or die("error: Could not connect to the host.");

mysql_select_db($db, $conn) or die("error: Could not find database");

 

$query = "SELECT characters.guid, characters.name, characters.level

                               FROM characters

                               ORDER BY level

                               DESC

                               LIMIT 0, 3"
;

 

$result = mysql_query($query, $conn) or die("error: Data not found");

 

$stats = "<table border='1'>";

 

for($x = 0; $x < mysql_num_rows($result); $x++){

                $y = $x + 1;

                $row = mysql_fetch_assoc($result);

                $stats .= "<tr><td>{$y}</td><td> " . $row['name'] . "</td><td>Level: " . $row['level'] . "</td></tr>";

}


$stats .= "</table>";

echo $stats;

 

?>
</p>
                        <p>&nbsp;</p></td>

                    </tr>
                      <tr>
                        <td align="left" valign="top" width="700"><center class="style19">
                          <span class="style19">Written By: Shadow<br />
                          1 January 2009 - 00:00:00</span>
                        </center>                        </td>
                      </tr>
                      
                  </table></td>

                  <td width="2%">&nbsp;</td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="11" background="images/h_15.jpg"></td>
          </tr>
          
          

        </table></td>
        </tr>

      <tr>
        <td height="48" valign="top" background="images/h_18.jpg">&nbsp;</td>
        <td height="100" colspan="2" align="center" valign="middle" background="images/h_19.jpg"><table width="60%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="center">&copy; Copyright 2008-2009 BlizzHell. All Rights Reserved.</td>
          </tr>
        </table></td>
      </tr>

    </table></td>
  </tr>
</table>
</body>
</html>
Gewijzigd op 01/01/1970 01:00:00 door Angelo Kreikamp
 
PHP hulp

PHP hulp

25/12/2024 14:39:15
 
PHP Newbie

PHP Newbie

01/01/2009 21:23:00
Quote Anchor link
- Wat is je probleem?
- Post alleen relevante code
- Zet je code tussen en
 
Angelo Kreikamp

Angelo Kreikamp

01/01/2009 21:51:00
Quote Anchor link
Er is geen probleem het is een stat script die laat zien welke spelers het hoogst zijn in level dat hij leest van de database wat ik nu wil is dat hij 3 spelers niet meerekent met de volgende namen:
Angelo
shadow
Remy
ik wil niet dat hun stats worden gelezen maar wel van de andere spelers heb geen flauw idee hoe ik het voor mekaar krijg
enige hulp is altijd welkom
 
Yorick17

yorick17

01/01/2009 21:56:00
Quote Anchor link
Wat dacht je van als naam is gelijk aan Angelo, shadow of Remy dan niets laten zien.
 
Angelo Kreikamp

Angelo Kreikamp

01/01/2009 22:19:00
Quote Anchor link
ja hoe doe ik dit precies kan je me helpen met het bestaande script?
 
Klaasjan Boven

Klaasjan Boven

01/01/2009 22:23:00
Quote Anchor link
Ik zou in de SQL al de namen uitsluiten

WHERE LOWER(naam) NOT IN ('angelo', 'shadow','remy') ;
 
Angelo Kreikamp

Angelo Kreikamp

01/01/2009 22:31:00
Quote Anchor link
Klaasjan Boven schreef op 01.01.2009 22:23:
Ik zou in de SQL al de namen uitsluiten

WHERE LOWER(naam) NOT IN ('angelo', 'shadow','remy') ;



kan je dat in mijn script laten zien?
 
Klaasjan Boven

Klaasjan Boven

01/01/2009 22:33:00
Quote Anchor link
$query = "SELECT characters.guid, characters.name, characters.level

FROM characters

WHERE LOWER(characters.name) NOT IN ('angelo', 'shadow','remy')

ORDER BY level

DESC

LIMIT 0, 3";

Is characters geen verboden woord??
 
Angelo Kreikamp

Angelo Kreikamp

01/01/2009 22:43:00
Quote Anchor link
hoe bedoel je dit verboden woord?
 
- SanThe -

- SanThe -

01/01/2009 22:54:00
Quote Anchor link
Alleen enkelvoud is een 'reserved word' => CHAR en CHARACTER mag dus niet.
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.