Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [PHP & MySQL] If Abfrage? (https://www.gegen-bilderklau.net/thread.php?threadid=167325)
Geschrieben von Stelo am 17.01.2010 um 15:06:
Und wie immer kann ich nur die gleiche Antwort geben:
php: |
1:
|
$eintragen = mysql_query($eintrag) OR die(mysql_error()); |
|
... und wir wissen mehr!
Geschrieben von Summer am 17.01.2010 um 15:37:
DANKE es klappt ;D
Geschrieben von Steffi. am 19.01.2010 um 17:51:
---
Geschrieben von Steffi. am 21.01.2010 um 14:41:
Ich könnte wirklich ein bisschen Hilfe gebrauchen, komme sonst leider nicht weiter =/
Geschrieben von Steffi. am 23.01.2010 um 15:02:
neues im Startpost
Geschrieben von Steffi. am 25.01.2010 um 19:47:
... leider immer noch bestehend der Fehler.
Geschrieben von Steffi. am 28.01.2010 um 03:02:
... keiner einen Tipp?
Geschrieben von Denis am 28.01.2010 um 05:27:
php: |
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:
|
if($row->ga_ap <= "48" and $row->ga_ap >= "1")
{
echo "B";
}
if($row->ga_ap <= "90" and $row->ga_ap >= "49")
{
echo "I";
}
if($row->ga_ap <= "131" and $row->ga_ap >= "91")
{
echo "II";
}
if($row->ga_ap <= "172" and $row->ga_ap >= "132")
{
echo "III";
}
if($row->ga_ap <= "173" and $row->ga_ap >= "214")
{
echo "IV";
}
if($row->ga_ap <= "215" and $row->ga_ap >= "250")
{
echo "V";
}
else
{
echo "-";
} |
|
ist korrekt, da kommt kein parse error.
der fehler muss irgendwo anders im script sein.
Geschrieben von Steffi. am 28.01.2010 um 17:23:
mh. ich kann den ganzen code leider nicht reinstellen (zu gro), hier mal so weit es geht:
Zitat: |
Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /kunden/mausolf-net.de/webseiten/latinos/NEU/profilPferd.php on line 233 |
php: |
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:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
|
<html>
<head>
<title>Steckbrief // Gut Mahltrup</title>
<link rel=stylesheet href=styleT.css>
<script type="text/javascript">
function hideSub()
{
if (!document.getElementsByTagName)
return;
var mnu = document.getElementById('menu');
var toplis = mnu.getElementsByTagName('li');
for (var it = 0; it < toplis.length; it++)
{
var sublis = toplis[it].getElementsByTagName('li');
for (var is = 0; is < sublis.length; is++)
if (sublis[is].style)
sublis[is].style.display = (toplis[it].className == 'show') ? 'block' : 'none';
}
}
function mShow(Me)
{
if (!Me.getElementsByTagName)
return;
var mylis = Me.getElementsByTagName('li');
if (!mylis)
return;
for (j = 0; j < mylis.length; j++)
mylis[j].style.display = (mylis[j].style.display == 'block') ? 'none' : 'block';
}
</script>
</head>
<body onload="hideSub();">
<script type="text/javascript" src="../wz_tooltip.js"></script>
<?php
//Verbindung zu Datenbank aufbauen
include("../_include/db_connect.inc.php");
$link = connect_to_stef_db();
$name= $_GET["name"];
$id= $_GET["id"];
$abfrage = "SELECT * FROM SteckbriefTabelle WHERE id = '$id'";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{echo "<center>
<table width=620 style="border: 3px solid #1A212A; background-color: #BCC0C8"><tr><td><br><center>
<table width=600>
<tr>
<td colspan=3 style="border: 0px solid; background-image: url('Grafiken/Steckbriefkopf.png')">
<div style="font-variant:small-caps; font-size:10pt; color: #FFFFFF">  <b>$row->name</b></div>
</td>
<td width=25% style="border: 0px solid; background-image: url('Grafiken/Steckbriefkopf.png')">
<div align=right>
<a href="turniere.php?id=$row->id" onmouseover="Tip('  Erfolge  ', BGCOLOR, '#D7D9DD', PADDING, 0, BORDERCOLOR, '#1A212A')" onmouseout="UnTip()"><img src="Grafiken/Erfolge.png" border=0></a>  
<a href="berichte.php?id=$row->id" onmouseover="Tip('  Berichtebuch  ', BGCOLOR, '#D7D9DD', PADDING, 0, BORDERCOLOR, '#1A212A')" onmouseout="UnTip()"><img src="Grafiken/BerichtebuchG.png" border=0></a>
</div>
</td>
</tr>
<tr>
<td colspan=4 class=tdborderH>
<center><font style="font-size: 6pt"><b>! Sämtliche Angaben auf dieser Seite bezüglich des abgebildeten Pferdes sind frei erfunden und haben nichts mit
dem abgebildeten Pferd zu tun. <b>!</b></font></center>
</td>
</tr>
<tr>
<td width=25% class=tdborderH><b>Name:</b></td>
<td width=25% class=tdborderH>$row->name</td>
<td colspan=2 rowspan=9 class=tdborderH><center><img src=Pferde/$row->geschlecht/$row->bildordner.Vorschau1.png></center>
</td>
</tr>
<tr>
<td width=25% class=tdborderH><b>Rufname:</b></td>
<td width=25% class=tdborderH>$row->rufname</td>
</tr>
<tr>
<td width=25% class=tdborderH><b>Geschlecht:</b></td>
<td width=25% class=tdborderH>$row->geschlecht</td>
</tr>
<tr>
<td width=25% class=tdborderH><b>Rasse:</b></td>
<td width=25% class=tdborderH>$row->rasse</td>
</tr>
<tr>
<td width=25% class=tdborderH><b>Alter:</b></td>
<td width=25% class=tdborderH>$row->alter_jahre Jahre ($row->alter_tage Tage)</td>
</tr>
<tr>
<td width=25% class=tdborderH><b>Stockmaß:</b></td>
<td width=25% class=tdborderH>$row->stockmass cm</td>
</tr>
<tr>
<td width=25% class=tdborderH><b>Farbe:</b></td>
<td width=25% class=tdborderH>$row->farbe</td>
</tr>
<tr>
<td width=25%><b>Status:</b></td>
<td width=25%><b>$row->kategorie</td>
</tr>
<tr>
<td width=25% class=tdborderH><input type="checkbox" disabled $row->verkaufen> zu verkaufen</td>
<td width=25% class=tdborderH><input type="checkbox" disabled $row->nicht_verkaufen> nicht zu verkaufen</td>
</tr>
<tr>
<td width=25%><b>Besitzer:</b></td>
<td width=25%><b>Wert:</b></td>
<td width=25%><b>Reitbeteiligung:</b></td>
<td width=25%><b>Pfleger:</b></td>
</tr>
<tr>
<td width=25% class=tdborderH><a href=profilMitglieder.php?id=$row->besitzerid>$row->besitzer</a></td>
<td width=25% class=tdborderH>$row->wert €</td>
<td width=25% class=tdborderH>$row->rb</td>
<td width=25% class=tdborderH>$row->pfleger</td>
</tr>
<tr>
<td width=25%>
<b>Bilder von <a href=$row->copy_addy target=_blank>$row->copy_name</a></b><br>
<small>für Großansicht mit der Maus über die Bilder fahren</small>
</td>
<td colspan=3>
<div align=right>
<div style="width: 435px; height: 92px; overflow: auto">
<table>
<tr>";
}
?>
<?php
include("bilder.php")
?>
<?php
$name= $_GET["name"];
$id= $_GET["id"];
$ga_ap = $_GET[ga_ap];
$abfrage = "SELECT * FROM SteckbriefTabelle WHERE id = '$id'";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{echo "</tr>
</table>
</div>
</div>
</td>
</tr>
<tr>
<td colspan=4 style="background-image: url('Grafiken/Steckbriefkopf.png')">
<div style="font-variant:small-caps; font-size:10pt; color: #FFFFFF">  <b>Charakter & Verhalten</b></div>
</td>
</tr>
<tr>
<td colspan=4 class=tdborderH><b>Charakter</b></td>
</tr>
<tr>
<td colspan=4 class=tdborderH>
<div align=justify>
$row->charakter
</div>
</td>
</tr>
<tr>
<td colspan=4 class=tdborderH><b>Verhalten</b></td>
</tr>
<tr>
<td width=25% class=tdborderH><p align=center>... unterm Sattel:</p></td>
<td colspan=3 class=tdborderH>
<div align=justify>
$row->verhalten_sattel
</div>
</td>
</tr>
<tr>
<td width=25% class=tdborderH><p align=center>... an der Hand:</p></td>
<td colspan=3 class=tdborderH>
<div align=justify>
$row->verhalten_hand
</div>
</td>
</tr>
<tr>
<td width=25% class=tdborderH><p align=center>... im Speziellen:</p></td>
<td colspan=3 class=tdborderH>
<div align=justify>
$row->verhalten_speziell
</div>
</td>
</tr>
<tr>
<td colspan=4><p align=right><a href=profilPferd.php/id=$row->id>nach oben <img src=Grafiken/up.png width=12 border=0></a></p></td>
</tr>
<tr>
<td colspan=4 style="background-image: url('Grafiken/Steckbriefkopf.png')">
<div style="font-variant:small-caps; font-size:10pt; color: #FFFFFF">  <b>Ausbildung & Potenzial</b></div>
</td>
</tr>
<tr>
<td colspan=4 class=tdborderH><b>Beritt</b></td>
</tr>
<tr>
<td width=25% class=tdborderH>derzeit in Beritt:</td>
<td width=25% class=tdborderH>$row->beritt</td>
<td width=25% class=tdborderH>Bereiter:</td>
<td width=25% class=tdborderH>$row->bereiter</td>
</tr>
<tr>
<td width=25% class=tdborderH><b>Disziplin</b></td>
<td colspan=2 class=tdborderH><b><center>Ausbildungsstand</center></b></td>
<td width=25% class=tdborderH><div align=right><b>Potenzial</b></div></td>
</tr>
<tr>
<td width=25% class=tdborderH>Grundausbildung</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/MG_AusbildungM.png')">
<div style="width: $row->ga_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div>
</td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>
if($row->ga_ap <= "48" and $row->ga_ap >= "1")
{
echo "B";
}
if($row->ga_ap <= "90" and $row->ga_ap >= "49")
{
echo "I";
}
if($row->ga_ap <= "131" and $row->ga_ap >= "91")
{
echo "II";
}
if($row->ga_ap <= "172" and $row->ga_ap >= "132")
{
echo "III";
}
if($row->ga_ap <= "173" and $row->ga_ap >= "214")
{
echo "IV";
}
if($row->ga_ap <= "215" and $row->ga_ap >= "250")
{
echo "V";
}
else
{
echo "-";
}
</td>
<td width=50%><div align=right>$row->ga_ps ($row->ga_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=25% class=tdborderH>Bodenarbeit</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/MG_AusbildungM.png')">
<div style="width: $row->ba_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->ba_as ($row->ba_ap P)</td>
<td width=50%><div align=right>$row->ba_ps ($row->ba_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=4 class=tdborderH><b>Englisch</b></td>
</tr>
<tr>
<td width=25% class=tdborderH>Dressur</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/E_AusbildungM.png')">
<div style="width: $row->dressur_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->dressur_as ($row->dressur_ap P)</td>
<td width=50%><div align=right>$row->dressur_ps ($row->dressur_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=25% class=tdborderH>Springen</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/E_AusbildungM.png')">
<div style="width: $row->springen_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->springen_as ($row->springen_ap P)</td>
<td width=50%><div align=right>$row->springen_ps ($row->springen_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=25% class=tdborderH>Vielseitigkeit</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/E_AusbildungM.png')">
<div style="width: $row->vs_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->vs_as ($row->vs_ap P)</td>
<td width=50%><div align=right>$row->vs_ps ($row->vs_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=25% class=tdborderH>Distanz</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/Dis_AusbildungM.png')">
<div style="width: $row->distanz_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->distanz_as ($row->distanz_ap P)</td>
<td width=50%><div align=right>$row->distanz_ps ($row->distanz_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=25% class=tdborderH>Fahren</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/E_AusbildungM.png')">
<div style="width: $row->fahren_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->fahren_as ($row->fahren_ap P)</td>
<td width=50%><div align=right>$row->fahren_ps ($row->fahren_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=25% class=tdborderH>Mounted Games</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/MG_AusbildungM.png')">
<div style="width: $row->mg_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->mg_as ($row->mg_ap P)</td>
<td width=50%><div align=right>$row->mg_ps ($row->mg_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=4 class=tdborderH><b>Western</b></td>
</tr>
<tr>
<td width=25% class=tdborderH>Trail</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/W_AusbildungM.png')">
<div style="width: $row->trail_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->trail_as ($row->trail_ap P)</td>
<td width=50%><div align=right>$row->trail_ps ($row->trail_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=25% class=tdborderH>Pleasure</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/W_AusbildungM.png')">
<div style="width: $row->pleasure_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->pleasure_as ($row->pleasure_ap P)</td>
<td width=50%><div align=right>$row->pleasure_ps ($row->pleasure_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=25% class=tdborderH>Reining</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/W_AusbildungM.png')">
<div style="width: $row->reining_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->reining_as ($row->reining_ap P)</td>
<td width=50%><div align=right>$row->reining_ps ($row->reining_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=25% class=tdborderH>Cutting</td>
<td colspan=2 class=tdborderH style="background-image: url('Grafiken/W_AusbildungM.png')">
<div style="width: $row->cutting_ap; height: 30px; overflow: hidden;"><img src=Grafiken/Ausbildung.png height=30></div></td>
<td width=25% class=tdborderH>
<table width=100%>
<tr>
<td width=50%>$row->cutting_as ($row->cutting_ap P)</td>
<td width=50%><div align=right>$row->cutting_ps ($row->cutting_pp P)</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=4 class=tdborderH>
<ul id="menu">
<li onclick="mShow(this);"><b>Verfassungswerte ansehen?</b> <font style="font-size:6pt;">(zum Öffnen klicken)</font>
<ul style="text-indent:0px;">
<li style="text-indent:0px;"><div class="hidden">
<p>
<table width=100%>
<tr>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">Vertrauen:</td>
<td colspan=2 class=tdborderH style="border-top: 1px solid #D7D9DD; background-image: url('Grafiken/BalkengrafikM.png')">
<div style="width: $multipli_vertrauen; height: 8px; overflow: hidden;"><img src=Grafiken/Balkengrafik.png height=8></div></td>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">$row->vertrauen_pr %   ($multipli_vertrauen <small>Punkte</small>)</td></tr>
</tr>
<tr>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">Zufriedenheit:</td>
<td colspan=2 class=tdborderH style="border-top: 1px solid #D7D9DD; background-image: url('Grafiken/BalkengrafikM.png')">
<div style="width: $row->zufrieden_pu; height: 8px; overflow: hidden;"><img src=Grafiken/Balkengrafik.png height=8></div></td>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">$row->zufrieden_pr %   ($row->zufrieden_pu <small>Punkte</small>)</td></tr>
</tr>
<tr>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">Pflege:</td>
<td colspan=2 class=tdborderH style="border-top: 1px solid #D7D9DD; background-image: url('Grafiken/BalkengrafikM.png')">
<div style="width: $row->pflege_pu; height: 8px; overflow: hidden;"><img src=Grafiken/Balkengrafik.png height=8></div></td>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">$row->pflege_pr %   ($row->pflege_pu <small>Punkte</small>)</td></tr>
</tr>
<tr>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">Kondition:</td>
<td colspan=2 class=tdborderH style="border-top: 1px solid #D7D9DD; background-image: url('Grafiken/BalkengrafikM.png')">
<div style="width: $row->kondi_pu; height: 8px; overflow: hidden;"><img src=Grafiken/Balkengrafik.png height=8></div></td>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">$row->kondi_pr %   ($row->kondi_pu <small>Punkte</small>)</td></tr>
</tr>
<tr>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">Gehorsam:</td>
<td colspan=2 class=tdborderH style="border-top: 1px solid #D7D9DD; background-image: url('Grafiken/BalkengrafikM.png')">
<div style="width: $row->gehorsam_pu; height: 8px; overflow: hidden;"><img src=Grafiken/Balkengrafik.png height=8></div></td>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">$row->gehorsam_pr %   ($row->gehorsam_pu <small>Punkte</small>)</td></tr>
</tr>
<tr>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">Bewegung:</td>
<td colspan=2 class=tdborderH style="border-top: 1px solid #D7D9DD; background-image: url('Grafiken/BalkengrafikM.png')">
<div style="width: $row->bewegung_pu; height: 8px; overflow: hidden;"><img src=Grafiken/Balkengrafik.png height=8></div></td>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">$row->bewegung_pr %   ($row->bewegung_pu <small>Punkte</small>)</td></tr>
</tr>
<tr>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">Sättigung:</td>
<td colspan=2 class=tdborderH style="border-top: 1px solid #D7D9DD; background-image: url('Grafiken/BalkengrafikM.png')">
<div style="width: $row->satt_pu; height: 8px; overflow: hidden;"><img src=Grafiken/Balkengrafik.png height=8></div></td>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">$row->satt_pr %   ($row->satt_pu <small>Punkte</small>)</td></tr>
</tr>
<tr>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">Gesundheit:</td>
<td colspan=2 class=tdborderH style="border-top: 1px solid #D7D9DD; background-image: url('Grafiken/BalkengrafikM.png')">
<div style="width: $row->gesund_pu; height: 8px; overflow: hidden;"><img src=Grafiken/Balkengrafik.png height=8></div></td>
<td width=25% class=tdborderH style="border-top: 1px solid #D7D9DD">$row->gesund_pr %   ($row->gesund_pu <small>Punkte</small>)</td></tr>
</tr>
</table>
</li></ul>
</li></ul>
</td>
</tr>
<tr>
<td colspan=4><p align=right><a href=profilPferd.php?id=$row->id>nach oben <img src=Grafiken/up.png width=12 border=0></a></p></td>
</tr> |
|
Geschrieben von Denis am 28.01.2010 um 17:27:
ähm?!
in zeile 262 ist doch der php tag noch offen,
du kannst doch da nicht einfach mit html weitermachen ohne echo bzw.
andere ausgabefunktionen.
[edit] und nach deinem letzten edit vor paar min der sich mit meinem posting
überschnitten hat, is jetzt alles falsch :x [/edit]
Geschrieben von Steffi. am 28.01.2010 um 18:56:
?
ich hab den Code oben so reingestellt wie er derzeit hochgeladen ist (hatte ja zwischendurch auf div. arten versucht das Problem zu beheben)
So wie er oben steht ist er momentan (geht eben nur noch ein wenig weiter xD) -- daher die Edits.
Ich hab auch schon probiert die if anweisung als extra php teil zu packen, also php vorher beenden, und nach dem Code wieder öffnen (fragt nicht warum... verzweiflung xD) aber hat alles nichts gebracht...
und jetzt ist alles falsch? Hä? XD
Geschrieben von Denis am 28.01.2010 um 19:16:
in zeile 231 fehlt hinten das ";
bei zeile 262 muss vorne ein echo "
hin
Geschrieben von Steffi. am 29.01.2010 um 00:04:
ah supi

jetzt muss ich nur noch meine mathematischen denkfehler ausmerzen, dann passt es hoffentlich.
Geschrieben von Denis am 29.01.2010 um 00:12:
bei dem zweiten ding musst du aus dem
$multiplikation_vertrauen = $zahlVer * $zahl2;
folgendes machen:
$multiplikation_vertrauen = ($zahlVer) ? $zahlVer * $zahl2 : "$zahl2";
da er dir immer 0 ausgeben wird, wenn $zahlVer nicht existiert,
da ja nichts, multipliziert mit irgendwas, immernoch nichts bleibt .. also 0
Geschrieben von Steffi. am 29.01.2010 um 00:15:
alles klar, werds mal so probieren
gr, also die If Abfrage klappt soweit wie es soll, nur an einer Stelle nicht.
php: |
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:
|
<table width=100%>
<tr>
<td width=50%>";
if($row->ba_ap >= 1 and $row->ba_ap <= 48)
{
echo "B";
}
if($row->ba_ap >= 49 and $row->ba_ap <= 90)
{
echo "I";
}
if($row->ba_ap >= 91 and $row->ba_ap <= 131)
{
echo "II";
}
if($row->ba_ap >= 132 and $row->ba_ap <= 172)
{
echo "III";
}
if($row->ba_ap >= 173 and $row->ba_ap <= 214)
{
echo "IV";
}
if($row->ba_ap >= 215 and $row->ba_ap <= 250)
{
echo "V";
}
else
{
echo "-";
}
echo "  ($row->ba_ap P)</td>
<td width=50%><div align=right>";
if($row->ba_pp >= 1 and $row->ba_pp <= 48)
{
echo "B";
}
if($row->ba_pp >= 49 and $row->ba_pp <= 90)
{
echo "I";
}
if($row->ba_pp >= 91 and $row->ba_pp <= 131)
{
echo "II";
}
if($row->ba_pp >= 132 and $row->ba_pp <= 172)
{
echo "III";
}
if($row->ba_pp >= 173 and $row->ba_pp <= 214)
{
echo "IV";
}
if($row->ba_pp >= 215 and $row->ba_pp <= 250)
{
echo "V";
}
else
{
echo "-";
}
echo "  ($row->ba_pp P)</div></td>
</tr>
</table> |
|
Zitat: |
III- (140 P) V (250 P) |
das wird mir angezeigt, was stört ist eben das - nach III. Ich hab mal geschaut wo es herkommt, es kommt durch den else Befejl der dort anscheinend noch mit ausgeführt wird, doch warum? der Rest stimmt ja und derf Code oben ist der selbe wie der darunter o__O
Geschrieben von Steffi. am 04.02.2010 um 20:57:
Dankesehr, so gehts
Forensoftware: Burning Board, entwickelt von WoltLab GmbH