-

BabyHanah
- Erledigt smile -
Remember
Halihallo smile

Ich wollt fragen, ob jemand weiß, wie ich Pferde nach Alter ordnen kann. Ich denk mal, dass ich irgendwo ORDER BY Alter oder so einfügen muss. Aber ich find nicht die richtige Stelle ~.~!
Kuhmuhphu
So ich habs jetzt alles hinbekommen..

Allerdings wird mir jetzt gar nichts mehr angezeigt O___O
Und ich weiß einfach nicht wieso.. keine Fehlermeldung oder änliches.
Ich komme auf den Steckieteil und als Überschrift wird mir der richtige Name angezeigt.. allerdings steht dort sonst nichts was ich in der mysql Tabelle eingetragen habe..
hoffentlich kann mir jemand helfen...
Hier mein Code

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:
<?php


include("db.php");

$id "$_GET[id]";

$Ergebnis mysql_query"SELECT * FROM Pferd where ID='$id'" );
if (@mysql_num_rows($Ergebnis) == 0) {
echo "Dieses Pferd existiert nicht!";
}

else {
$Data mysql_fetch_array$Ergebnis );
$name "$Data[Name]";

echo'
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>zuchtsteck</title>
  <link rel="stylesheet" type="text/css"
 href="stylesheets.css">
</head>
<body>
<h2 class="h2">'.$Data[Name].'</h2>
<hr class="linie">
<br>
<br>
<hr class="linie">
<div style="text-align: center;"><img style=""
 src="http://nicerun.square7.ch/neu/Bilder/ausbildung/Aktiv1.gif">Deckeinsatz
/ <img
 src="http://nicerun.square7.ch/neu/Bilder/ausbildung/Aktiv2.gif">
Nicht
zugelassen / <img
 src="http://nicerun.square7.ch/neu/Bilder/ausbildung/Aktiv3.gif">
Zuchtpause
(Turniereinsatz)<br>
<hr class="linie">
<br>
Derzeit : <img src="'.$Data[deckstatus].'"><br>
<br>
- Urkunde wird beim Fahren &uuml;ber den Titel sichtbar -<br>
<br>
<table
 style="width: 650px; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="0" cellspacing="2">
  <tbody>
    <tr>
      <td
 style="width: 245px; text-align: left; background-color: rgb(220, 211, 204);">Gek&ouml;rt
/ Pr&auml;miert</td>
      <td style="width: 235px;"><a class="tooltip" href="#">'.$Data[gekort].'<img
 src="'.$Data[zulassung].'"></a></td>
    </tr>
    <tr>
      <td
 style="width: 245px; text-align: left; background-color: rgb(220, 211, 204);">Wertnote</td>
      <td style="width: 235px;">'.$Data[wertnote].'</td>
    </tr>
    <tr>
      <td
 style="width: 245px; text-align: left; background-color: rgb(220, 211, 204);">Hengstleistungs/Stutenleistungspr&uuml;fung</td>
      <td style="width: 235px;">'.$Data[hlp].'</td>
    </tr>
    <tr>
      <td
 style="width: 245px; text-align: left; background-color: rgb(220, 211, 204);">Nachkommenanzahl</td>
      <td style="width: 235px;">'.$Data[nachkommenanzahl].'</td>
    </tr>
  </tbody>
</table>
<br>
<br>
<table
 style="width: 90%; text-align: left; margin-left: auto; margin-right: auto;"
 cellpadding="0" cellspacing="2">
  <tbody>
    <tr>
      <td style="width: 210px; background-color: rgb(220, 211, 204);"
 class="\&quot;tableb\&quot;">Name</td>
      <td style="width: 317px; background-color: rgb(220, 211, 204);"
 class="\&quot;tableb\&quot;">aus Der/von Dem</td>
      <td style="width: 344px; background-color: rgb(220, 211, 204);"
 class="\&quot;tableb\&quot;">Im Besitz von</td>
      <td style="width: 306px; background-color: rgb(220, 211, 204);"
 class="\&quot;tableb\&quot;">Rasse</td>
    </tr>
    <tr>
      <td style="width: 210px;"><a href="'.$Data[fohlenlink].'" target="blank">'.$Data[fohlen].'</a></td>
      <td style="width: 317px;">'.$Data[muttervater].'</td>
      <td style="width: 344px;"><a href="'.$Data[hofadresse].'" target="blank">'.$Data[heimathof].'</a></td>
      <td style="width: 306px;">'.$Data[rasse].'</td>
    </tr>
  </tbody>
</table>
</div>
</body>
</html>';
}
?>
sina91

- Cousquer
Um eine Abfrage zu ordnen, sollte dies immer so aussehen:
$abfrage="SELECT tabellenzellen FROM tabelle ORDER BY tabellezelle"
Evt. könnte am Ende noch ein DESC dahinter, je nachdem, ob du von Jung nach Alt, oder Alt nach Jung ordnen willst Augenzwinkern

- Kuhmuhphu
Mh, auf den ersten Blick seh ich da jetzt keinen Fehler, allerdings code ich das auch immer anders, indem der HTML Code nicht im PHP Echo steht, und an den Stellen, wo etwas via PHP ausgegeben wird schreibe ich <?php echo " .. "; ?> .
Allerdings kann ich dir leider nicht helfen, was genau bei dir jetzt falsch ist, und das ganze umcoden wäre ja auch etwas problematisch (wobei der Code ja noch nicht ganz so lang ist).
Kuhmuhphu
also nach jeder ausgabe das PHP schließen und neu auf machen?

hm.. ich kanns ja einfach mal versuchen.. wobei ich denke das es nicht daran liegt oder?

eventuell ja auch an der mysql Tabelle?
sina91
Gibt er dir denn die Tabelle aus, allerdings nur nicht die Werte?
Was mir gerade auffällt: Du sagst ja, Name gibt er dir aus.
Also bekommt er bei $Data[Name] ein Ergebnis, bei $Data[deckstatus] aber nicht.
Da hier einmal Groß- einmal Kleinschreibung ist; Heißt der Tabellenname deckstatus evt. auch Deckstatus?
Das würde den Fehler erklären, da MySQL zwischen Groß- und Kleinschreibung unterscheiden könnte.
Kuhmuhphu
- EDIT -

Es funzt nun... hab was vergessen einzutragen großes Grinsen
Kuhmuhphu
So ähm ich nochmal großes Grinsen

Ich würde gerne in meine Php steckies das Fotoalbum mit einem tooltip machen.
Soll heißen die Bilder werden in klein angezeigt und beim drüberfahren öffnet sich ein Fenster der das Bild automatisch vergrößert bzw in der eigentlichen größe ausgibt.

Allerdings weiß ich nicht wirklich wie ich das bewerkstelligen soll das jedes Pferd eine unterschiedliche Anzahl von Bildern hat. Also das nicht jedes Pferd 5 Bilder hat sondern eins 6 und eins mal 4 etc..

Vielleicht könnt ihr mir da mal helfen?
+Debbie+
Ein Feld in der Tabelle mit Typ Text hinzufügen Name vll. Fotoalbum und da rein den ganzen HTML Code schreiben. Dann lässt Du Fotoalbum an der Stelle wo es hinsoll ausgeben und dann sind die Bilder alle da. Gibt sicher eine elegantere Lösung aber naja funktioniert bei mir auch so ...
Kuhmuhphu
hm das ist eine idee... ich werde es dann wohl erst mal so machen bis ich ne bessere Lösung hab^^

danke auf jeden Fall smile
Nanni
Ich hab das Problem mit der unterschiedlichen Bilderanzahl so gelöst:
Ich hab ja Fohlen/Erwachsenenbilder und daher sowieso unter jedem Bild das Copyright, tw. unterschiedliche, stehen.
Daher hab ich in der Datenbank Felder Copyright, Copyright2, Copyright3 u.s.w. Im Stecki prüf ich, wo Copyright2 != "", dort wird dann das Bild und das Copyright ausgegeben. Falls es wem hilft oder eine Anregung sein kann (:
Mercedes
Hallo.
Ich habe so eine Frage.
Wenn man z.B. ein Bild einfügen will, muss man dafür auch Kästchen machen?
Oder wenn man Freiraum zwischen zwei themen, z.B. Training und Stammbaum machen Will, muss man dann ein feld freilassen oder hinterher reinmachen?
*mea
Hey,

Ich wollte mal fragen, wie man das hinbekommt, dass zb bei den Verkaufspferden immer 3 in einer Reihe angezeigt werden und dann eine neue Rheie genutzt wird. Ist das irgendwie möglich?

mfg, mel.
*ara-appaloosa*
Folgender Fehler tritt bei mir auf:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /usr/export/www/hosting/youna/pferde/Pferd.php on line 19


code:
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:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><title>Dein
Hof Titel</title>
<link rel="stylesheet" href="style.css" type="text/css"></head><body><p
 style="text-align: center; font-family: Tahoma; font-weight: bold; color: rgb(217, 208, 240);"
 class="head"><big><big>x Equidenpass x</big></big></p>
<center><?php // Verbindung zur Datenbank
include("Datenbank.php");
// Hiermit wird der Wert geholt, der über die URL übergeben wurde. Dieser wird nun für die Abfrage genutzt.
// Somit werden nur genau die Daten abgefragt, die diese ID haben
$id = "$_GET[id]";
$Ergebnis = mysql_query( "SELECT * FROM Pferd where ID='$id'" );
if (@mysql_num_rows($Ergebnis) == 0) {
echo "Dieses Pferd existiert nicht!";
}
else {
$Data = mysql_fetch_array( $Ergebnis );
//Anzeige der Links (Wenn du den Chara auf mehrere Seiten verteilst
// Hier die Angabe der Daten vom Pferd. Es kann wieder HTML verwendet werden ganz normal eben (; Nur an der Stelle wo die Daten sein sollen schreibt ihr $Data[Spaltenname] hin
echo "<table style="background-color: rgb(249, 249, 246); width: 510px; height: 500px;"
border="0" cellpadding="0" cellspacing="3"><tbody><tr
style="font-family: Tahoma;"><th colspan="6"
style="border: 1px solid rgb(96, 100, 67); padding: 3px; width: 500px; height: 22px; background-color: rgb(184, 186, 197); border-collapse: collapse;">$Data[Name]<br><span
style="color: rgb(0, 0, 187);"></span></th></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
rowspan="7" colspan="2" align="middle"
height="237" width="155"><p align="center">&nbsp;</p></td>
<th
style="padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="24" width="156"><font
style="font-size: 8pt;">Lebensnummer :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="24" width="162">$Data[Lebensnummer]<br><span
style="color: rgb(0, 0, 187);"></span></td></tr><tr><th
style="padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="24" width="156"><font
style="font-size: 8pt;">Geschlecht :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="24" width="162"><font
style="font-size: 8pt;"> </font>$Data[Geschlecht]<br><span
style="color: rgb(0, 0, 187);"></span></td></tr><tr><th
style="padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="24" width="156"><font
style="font-size: 8pt;">Alter :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="24" width="162">$Data[Alter]</td></tr><tr><th
style="padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="24" width="156"><font
style="font-size: 8pt;">Rasse :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="24" width="162">$Data[Rasse]</td></tr><tr><th
style="padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="23" width="156"><font
style="font-size: 8pt;">Farbe :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="23" width="162">$Data[Farbe]</td></tr><tr><th
style="padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="23" width="156"><font
style="font-size: 8pt;">Stockmaß :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="23" width="162">$Data[Stockmass]</td></tr><tr><th
style="padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="23" width="156"><font
style="font-size: 8pt;">Fotoalbum :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="23" width="162">$Data[Fotoalbum]</td></tr><tr><td
style="padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; height: 26px; font-family: Tahoma;"
colspan="2" align="middle" width="155"><p
style="height: 7px;" align="center"><font
style="font-size: 8pt;"><b>Besitzer
:</b></font></p></td>
<td
style="padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; height: 26px; font-family: Tahoma;"
colspan="2" align="middle" width="156"><font
style="font-size: 8pt;"><b>Pfleger :</b></font></td>
<td
style="padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; height: 26px; font-family: Tahoma;"
colspan="2" align="middle" width="156"><font
style="font-size: 8pt;"><b>Wert :</b></font></td></tr>
<tr><td style="height: 37px; font-family: Tahoma;"
colspan="2" align="middle" width="161">$Data[Besitzer]</td><td
style="height: 37px; font-family: Tahoma;" colspan="2"
align="middle" width="162">$Data[Pfleger]</td><td
style="height: 37px; font-family: Tahoma;" colspan="2"
align="middle" width="162">$Data[Wert]</td></tr><tr
style="font-family: Tahoma;"><td
style="border: 1px solid rgb(96, 100, 67); padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse;"
colspan="6" align="middle" height="20" width="500"><div
style="text-align: center;"><span
style="font-weight: bold;">Abstammung</span></div></td></tr>
<tr><td rowspan="5" colspan="2"
style="width: 161px; height: 96px; font-family: Tahoma;">$Data[Name]</td><td
style="font-family: Tahoma;" rowspan="2" colspan="2"
align="middle" height="36" width="162">$Data[Mutter]</td><td
style="font-family: Tahoma;" colspan="2" align="middle"
height="16" width="162">$Data[MMutter]</td></tr><tr
style="font-family: Tahoma;"><td colspan="2"
align="middle" height="16" width="162">$Data[MVater]</td></tr><tr
style="font-family: Tahoma;"><td colspan="4"
align="middle" height="16" width="330">.........................................................................<br></td></tr><tr><td
style="font-family: Tahoma;" rowspan="2" colspan="2"
align="middle" height="36" width="162">$Data[Vater]</td>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="16" width="162">$Data[VMutter]</td></tr><tr
style="font-family: Tahoma;"><td colspan="2"
align="middle" height="16" width="162">$Data[VVater]</td></tr><tr><td
style="border: 1px solid rgb(96, 100, 67); padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="4" align="middle" height="22" width="330"><b><font
style="font-size: 8pt;">Charakter</font></b></td>
<td
style="border: 1px solid rgb(96, 100, 67); padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="2" align="middle" height="22" width="156"><b><font
style="font-size: 8pt;">Zucht</font></b></td></tr>
<tr><td style="font-family: Tahoma;" rowspan="4"
colspan="4" text-align="center" margin="auto"
align="middle" height="181" width="310">$Data[Charakter]</td><td
style="font-family: Tahoma;" align="middle" height="20"
width="104"><font style="font-size: 8pt;">zugelassen
:</font></td>
<td align="middle" height="20" width="84">$Data[zugelassen]</td></tr><tr
style="font-family: Tahoma;"><td colspan="2"
height="20" width="162"><font
style="font-size: 8pt;">zugelassen für :</font></td></tr>
<tr style="font-family: Tahoma;"><td colspan="2"
height="81" width="162">$Data[zugelassen fuer]</td></tr><tr><td
height="16" width="84">Nachkommen:</td><td
height="16" width="84"></td></tr><tr
style="font-family: Tahoma;">
<th
style="border: 1px solid rgb(96, 100, 67); padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse;"
colspan="6" height="22" width="100%"><p
align="center"><font style="font-size: 8pt;">Ausbildung</font></p></th></tr>
<tr style="font-family: Tahoma;"><td colspan="6"
height="" width="100%"><div align="center"><table
border="0" cellpadding="0" cellspacing="3"
width="100%"><tbody><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Dressur</b></font></td>
<td align="middle" width="312">$Data[Dressur]</td></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Springen</b></font></td>
<td align="middle" width="312">$Data[Springen]</td></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Military</b></font></td>
<td align="middle" width="312">$Data[Military]</td></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Western</b></font></td>
<td align="middle" width="312">$Data[Western]</td></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Distanz</b></font></td>
<td align="middle" width="312">$Data[Distanz]</td></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Sonstiges</b></font></td>
<td align="middle" width="312">$Data[Sonstiges]</td></tr></tbody></table></div></td></tr><tr><th
style="border: 1px solid rgb(96, 100, 67); padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="22" width="166"><font
style="font-size: 8pt;">Tierarzt</font></th>
<th
style="border: 1px solid rgb(96, 100, 67); padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="22" width="166"><font
style="font-size: 8pt;">Hufschmied</font></th>
<th
style="border: 1px solid rgb(96, 100, 67); padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse; font-family: Tahoma; font-size: 8pt;"
colspan="2" height="22" width="166">Unterkunft</th></tr>
<tr><td style="font-family: Tahoma;" height="30"
width="84"><font style="font-size: 8pt;">Impfungen:</font></td>
<td style="font-family: Tahoma;" height="30" width="84">$Data[Impfungen]</td><td
style="font-family: Tahoma;" height="30" width="84"><font
style="font-size: 8pt;">Vorne:</font></td>
<td style="font-family: Tahoma;" height="30" width="84">$Data[Vorne]</td><td
style="font-family: Tahoma;" height="30" width="108"><font
style="font-size: 8pt;">Stall :</font></td>
<td style="font-family: Tahoma;" height="30" width="60">$Data[Stall]</td></tr><tr><td
style="font-family: Tahoma;" height="30" width="84"><font
style="font-size: 8pt;">Letzter<br>Termin:<br></font></td>
<td style="font-family: Tahoma;" height="30" width="84">$Data[LTermin]</td><td
style="font-family: Tahoma;" height="30" width="84"><font
style="font-size: 8pt;">Hinten:</font></td>
<td style="font-family: Tahoma;" height="30" width="84">$Data[Hinten]</td><td
style="font-family: Tahoma;" height="30" width="108"><font
style="font-size: 8pt;">Weide:</font></td>
<td style="font-family: Tahoma;" height="30" width="60">$Data[Weide]</td></tr><tr><td
style="font-family: Tahoma;" height="15" width="92"><font
style="font-size: 8pt;">Nächster<br>Termin:</font></td>
<td style="font-family: Tahoma;" height="15" width="76"><font
style="font-size: 8pt;"> </font>$Data[NTermin]</td><td
style="font-family: Tahoma;" colspan="2" height="15"
width="168"><font style="font-size: 8pt;">Beschlag
:&nbsp;</font>$Data[Beschlag]</td>
<td style="font-family: Tahoma;" height="15"
width="108"><font style="font-size: 8pt;">Einstreu
:</font></td>
<td style="font-family: Tahoma;" height="15" width="60">$Data[Einstreu]
</td></tr><tr style="font-family: Tahoma;"><td
style="border: 1px solid rgb(96, 100, 67); padding: 3px; background-color: rgb(184, 186, 197); border-collapse: collapse;"
colspan="6" height="22" width="100%"><p
align="center"><font style="font-size: 8pt;"><b>Erfolge</b></font></p></td></tr>
<tr style="font-family: Tahoma;"><td colspan="6"
height="2" width="100%"><div
style="width: 500px; height: 181px; overflow: auto;">$Data[Erfolge]</div></td></tr></tbody></tabl
</center></div><center><center></center><center></center></center><br></body></html>]";
}
?></center></body></html>
  
kext
Du musst Quotes in Strings mit einem Backslash (\) maskieren.
php:
1:
2:
3:
4:
5:
// FALSCH
echo "<div class="Klasse">Hallo Welt!</div>";

// RICHTIG
echo "<div class="Klasse">Hallo Welt!</div>";
Du siehst ja schon an den Farben im Code, dass das Erste kein durchgehender String ist.
*ara-appaloosa*
Jetzt tauch dieser fehler auf:
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /usr/export/www/hosting/youna/pferde/Pferd.php on line 210




code:
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:
  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><title>Dein
Hof Titel</title>
<link rel="stylesheet" href="style.css" type="text/css"></head><body><p
 style="text-align: center; font-family: Tahoma; font-weight: bold; color: rgb(217, 208, 240);"
 class="head"><big><big>x Equidenpass x</big></big></p>
<center><?php // Verbindung zur Datenbank
include("Datenbank.php");
// Hiermit wird der Wert geholt, der über die URL übergeben wurde. Dieser wird nun für die Abfrage genutzt.
// Somit werden nur genau die Daten abgefragt, die diese ID haben
$id = "$_GET[id]";
$Ergebnis = mysql_query( "SELECT * FROM Pferd where ID='$id'" );
if (@mysql_num_rows($Ergebnis) == 0) {
echo "Dieses Pferd existiert nicht!";
}
else {
$Data = mysql_fetch_array( $Ergebnis );
//Anzeige der Links (Wenn du den Chara auf mehrere Seiten verteilst
// Hier die Angabe der Daten vom Pferd. Es kann wieder HTML verwendet werden ganz normal eben (; Nur an der Stelle wo die Daten sein sollen schreibt ihr $Data[Spaltenname] hin
echo "<center><table style="background-color: rgb(204, 207, 216); width: 510px; height: 500px;"
border="0" cellpadding="0" cellspacing="3"><tbody><tr
style="font-family: Tahoma;"><th colspan="6"
style="border: 1px solid rgb(97, 101, 148); padding: 3px; width: 500px; height: 22px; background-color: rgb(97, 101, 148); border-collapse: collapse;">$Data[Name]<br><span
style="color: rgb(97, 101, 148);"></span></th></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
rowspan="7" colspan="2" align="middle"
height="237" width="155">
<span style="color: rgb(221, 0, 0);"><img src="".$Data[Bild].""><br>$Data[Quelle]</td>
<th style="padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="24" width="156"><font
style="font-size: 8pt;">Lebensnummer :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="24" width="162">$Data[Lebensnummer]<br><span
style="color: rgb(97, 101, 148);"></span></td></tr><tr><th
style="padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="24" width="156"><font
style="font-size: 8pt;">Geschlecht :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="24" width="162"><font
style="font-size: 8pt;"> </font>$Data[Geschlecht]<br><span
style="color: rgb(97, 101, 148);"></span></td></tr><tr><th
style="padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="24" width="156"><font
style="font-size: 8pt;">Alter :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="24" width="162">$Data[Alter]</td></tr><tr><th
style="padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="24" width="156"><font
style="font-size: 8pt;">Rasse :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="24" width="162">$Data[Rasse]</td></tr><tr><th
style="padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="23" width="156"><font
style="font-size: 8pt;">Farbe :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="23" width="162">$Data[Farbe]</td></tr><tr><th
style="padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="23" width="156"><font
style="font-size: 8pt;">Stockmaß :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="23" width="162">$Data[Stockmass]</td></tr><tr><th
style="padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="23" width="156"><font
style="font-size: 8pt;">Fotoalbum :</font></th>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="23" width="162"><span
style="color: rgb(57, 58, 89);"><a href=".$Data[Album]." onclick="popup()">Zum Album</a></span><span
style="color: rgb(0, 119, 0);"></span></td></tr><tr><td
style="padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; height: 26px; font-family: Tahoma;"
colspan="2" align="middle" width="155"><p
style="height: 7px;" align="center"><font
style="font-size: 8pt;"><b>Besitzer:</b></font></p></td>
<td
style="padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; height: 26px; font-family: Tahoma;"
colspan="2" align="middle" width="156"><font
style="font-size: 8pt;"><b>Pfleger :</b></font></td>
<td
style="padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; height: 26px; font-family: Tahoma;"
colspan="2" align="middle" width="156"><font
style="font-size: 8pt;"><b>Wert :</b></font></td></tr>
<tr><td style="height: 37px; font-family: Tahoma;"
colspan="2" align="middle" width="161">$Data[Besitzer]</td><td
style="height: 37px; font-family: Tahoma;" colspan="2"
align="middle" width="162">$Data[Pfleger]</td><td
style="height: 37px; font-family: Tahoma;" colspan="2"
align="middle" width="162">$Data[Wert]</td></tr><tr
style="font-family: Tahoma;"><td
style="border: 1px solid rgb(97, 101, 148); padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse;"
colspan="6" align="middle" height="20" width="500"><div
style="text-align: center;"><span
style="font-weight: bold;">Abstammung</span></div></td></tr>
<tr><td rowspan="5" colspan="2"
style="width: 161px; height: 96px; font-family: Tahoma;">$Data[Name]</td><td
style="font-family: Tahoma;" rowspan="2" colspan="2"
align="middle" height="36" width="162">$Data[Mutter]</td><td
style="font-family: Tahoma;" colspan="2" align="middle"
height="16" width="162">$Data[MMutter]</td></tr><tr
style="font-family: Tahoma;"><td colspan="2"
align="middle" height="16" width="162">$Data[VMutter]</td></tr><tr
style="font-family: Tahoma;"><td colspan="4"
align="middle" height="16" width="330">.........................................................................<br></td></tr><tr><td
style="font-family: Tahoma;" rowspan="2" colspan="2"
align="middle" height="36" width="162">$Data[Vater]</td>
<td style="font-family: Tahoma;" colspan="2"
align="middle" height="16" width="162">$Data[MVater]</td></tr><tr
style="font-family: Tahoma;"><td colspan="2"
align="middle" height="16" width="162">$Data[VVater]</td></tr><tr><td
style="border: 1px solid rgb(96, 100, 67); padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="4" align="middle" height="22" width="330"><b><font
style="font-size: 8pt;">Charakter</font></b></td>
<td
style="border: 1px solid rgb(97, 101, 148); padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="2" align="middle" height="22" width="156"><b><font
style="font-size: 8pt;">Zucht</font></b></td></tr>
<tr><td style="font-family: Tahoma;" rowspan="4"
colspan="4" text-align="center" margin="auto"
align="middle" height="181" width="310">$Data[Charakter]</td><td
style="font-family: Tahoma;" align="middle" height="20"
width="104"><font style="font-size: 8pt;">zugelassen:</font></td>
<td align="middle" height="20" width="84">$Data[Zugelassen]</td></tr><tr
style="font-family: Tahoma;"><td colspan="2"
height="20" width="162"><font
style="font-size: 8pt;">zugelassen für :</font></td></tr>
<tr style="font-family: Tahoma;"><td colspan="2"
height="81" width="162">$Data[ZFur]</td></tr><tr><td
height="16" width="84">Nachkommen:</td><td
height="16" width="84">$Data[Nachkommen]</td></tr><tr
style="font-family: Tahoma;">
<th
style="border: 1px solid rgb(97, 101, 148); padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse;"
colspan="6" height="22" width="100%"><p
align="center"><font style="font-size: 8pt;">Ausbildung</font></p></th></tr>
<tr style="font-family: Tahoma;"><td colspan="6"
height="" width="100%"><div align="center"><table
border="0" cellpadding="0" cellspacing="3"
width="100%"><tbody><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Dressur</b></font></td>
<td style="color: rgb(57, 58, 89);" align="middle"
width="312"><img src="".$Data[Dressur].""></td></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Springen</b></font></td>
<td style="color: rgb(57, 58, 89);" align="middle"
width="312"><img src="".$Data[Springen].""></td></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Military</b></font></td>
<td style="color: rgb(57, 58, 89);" align="middle"
width="312"><img src="".$Data[Military].""></td></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Western</b></font></td>
<td style="color: rgb(57, 58, 89);" align="middle"
width="312"><img src="".$Data[Western].""></td></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Distanz</b></font></td>
<td style="color: rgb(57, 58, 89);" align="middle"
width="312"><img src="".$Data[Distanz].""></td></tr><tr><td
style="padding: 3px; border-collapse: collapse; font-family: Tahoma;"
align="middle" width="110"><font
style="font-size: 8pt;"><b>Sonstiges</b></font></td>
<td style="color: rgb(57, 58, 89);" align="middle"
width="312"><img src="".$Data[Sonstiges].""></td></tr></tbody></table></div></td></tr><tr><th
style="border: 1px solid rgb(97, 101, 148); padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="22" width="166"><font
style="font-size: 8pt;">Tierarzt</font></th>
<th
style="border: 1px solid rgb(97, 101, 148); padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma;"
colspan="2" height="22" width="166"><font
style="font-size: 8pt;">Hufschmied</font></th>
<th
style="border: 1px solid rgb(97, 101, 148); padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse; font-family: Tahoma; font-size: 8pt;"
colspan="2" height="22" width="166">Unterkunft</th></tr>
<tr><td style="font-family: Tahoma;" height="30"
width="84"><font style="font-size:8pt;">Impfungen:</font></td>
<td style="font-family: Tahoma;" height="30" width="84">$Data[Impfungen]</td><td
style="font-family: Tahoma;" height="30" width="84"><font
style="font-size: 8pt;">Vorne:</font></td>
<td style="font-family: Tahoma;" height="30" width="84">$Data[Vorne]</td><td
style="font-family: Tahoma;" height="30" width="108"><font
style="font-size: 8pt;">Stall :</font></td>
<td style="font-family: Tahoma;" height="30" width="60">$Data[Stall]</td></tr><tr><td
style="font-family: Tahoma;" height="30" width="84"><font
style="font-size: 8pt;">Letzter<br>Termin:<br></font></td>
<td style="font-family: Tahoma;" height="30" width="84">$Data[LTermin]</td><td
style="font-family: Tahoma;" height="30" width="84"><font
style="font-size: 8pt;">Hinten:</font></td>
<td style="font-family: Tahoma;" height="30" width="84">$Data[Hinten]</td><td
style="font-family: Tahoma;" height="30" width="108"><font
style="font-size: 8pt;">Weide:</font></td>
<td style="font-family: Tahoma;" height="30" width="60">$Data[Weide]</td></tr><tr><td
style="font-family: Tahoma;" height="15" width="92"><font
style="font-size: 8pt;">Nächster<br>Termin:</font></td>
<td style="font-family: Tahoma;" height="15" width="76"><font
style="font-size: 8pt;"> </font>$Data[NTermin]</td><td
style="font-family: Tahoma;" colspan="2" height="15"
width="168"><font style="font-size: 8pt;">Beschlag
:&nbsp;</font>$Data[Beschlag]</td>
<td style="font-family: Tahoma;" height="15"
width="108"><font style="font-size: 8pt;">Einstreu:</font></td>
<td style="font-family: Tahoma;" height="15" width="60">$Data[Einstreu]
</td></tr><tr style="font-family: Tahoma;"
align="center"><td
style="border: 1px solid rgb(97, 101, 148); padding: 3px; background-color: rgb(97, 101, 148); border-collapse: collapse;"
colspan="6" height="22" width="100%"><p><font
style="font-size: 8pt;"><b>Erfolge</b></font></p></td></tr>
<tr style="font-family: Tahoma;"><td colspan="6" height="2" width="100%"><div style="width: 500px; height: 181px; overflow: auto;"><br><br><br><br>.$Data[Erfolge].<br></div></td></tr></tbody></table></center>;"
}
?></center></body></html>
kext
Du hast in Zeile 28 einen Punkt vergessen. <img src=\"".$Data[Bild]."\">
*ara-appaloosa*
habs gefunden...hab aber nun einen anderen fehler gefunden (oben rein editiert)
kext
Dann schau dir doch mal Zeile 210 an (und die davor und die danach).

Wie funktioniert noch gleich echo?

Tipp: Du hast zwei Zeichen verdreht.
*ara-appaloosa*
mensch bin ich blöd....danke fröhlich


Edit: Bei mir taucht jetzt diese Meldung auf: No suitable nodes are available to serve your request. verwirrt