-

*sue
www.funpic.de
dort einloggen
dann auf die Tabelle klicken Webhosting MySQL
Augenzwinkern

ich haette auch 2 Fragen
1. wie macht man das mit Bildern?
das hab ich nicht ganz kapiert
und zweitens

es ziegt mir immer an
Zitat:
Dieses Pferd existiert nicht!
****Amy****
danke
Nanni
pferdetreume, ich hab keine Ahnung, was du meinst.
Wie man Bilder einfügt?
Nun, ganz normal, nur das du in das Feld 'Bild' in der Tabelle eben den ganzen Link zum Bild angibst, oder du schreibst in der Tabelle beim Webhoster eben <IMG src=http://username.hoster.de/Verzeichnis/$Data[Name].jpg (eben die URL zum Bild angeben und der Name der Bilddatei müsste dann bei dem Pferd Sunny Sunny.jpg heißen.

Zum 2., entweder hast du das Pferd mit der entsprechenden ID nicht erstellt oder kA, iwie den Select-Befehl falsch gecodet. Wie wärs, wenn du den Code mal hier reinstellst?
Bah-bah-pfui-wesen
also ich hab n problem mit dem phpmyadmin muss ich das einfach downloaden oder was muss ich jetz machen weil wenn ich auf den link klick muss ich ja was eingeben aber irgendwie is alles falsch was ich da eingeb Augenzwinkern also was muss ich denn da genau eingeben?
Nanni
Bei welchem Homepage Anbieter bist du denn?
Leila
Problem: (Bin bei bplaced)
Zitat:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /users/rge/www/filemanager/Pferde/hengst.php on line 10

Warning: include(http://rge.bplaced.net/datenbank.php) [function.include]: failed to open stream: no suitable wrapper could be found in /users/rge/www/filemanager/Pferde/hengst.php on line 10

Warning: include() [function.include]: Failed opening 'http://rge.bplaced.net/datenbank.php' for inclusion (include_path='.:/etc/php/lib') in /users/rge/www/filemanager/Pferde/hengst.php on line 10

Warning: mysql_query() [function.mysql-query]: Access denied for user 'www-data'@'localhost' (using password: NO) in /users/rge/www/filemanager/Pferde/hengst.php on line 14

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /users/rge/www/filemanager/Pferde/hengst.php on line 14
Dieses Pferd existiert nicht!


Codes:
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:

<?
// Hostname oder IP des MySQL-Servers, bei Funpic localhost
$sqlhost = "localhost";
// Username und Passwort
$sqluser = "rge";
$sqlpassword = "****";
// Name der Datenbank, bei Funpic dein Nickname.
$sqldb = "rge_rge";

// Verbindung herstellen
mysql_connect($sqlhost,$sqluser,$sqlpassword) or die ("Keine Verbindung möglich"); 

mysql_select_db($sqldb) or die ("Die Datenbank existiert 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:
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:
<html>
 <head>
  <link rel="stylesheet" type="text/css" 

href="http://rge.bplaced.net/filemanager/allgemein/style.css">
  <meta http-equiv="expires" content="0">
 </head>

 <body>
<?php

include("http://rge.bplaced.net/datenbank.php");

$id "$_GET[id]";

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

else {
$Data mysql_fetch_array$Ergebnis );

echo "
  <div>
   <h1><font class='titel'>$Data[titel]</font> $Data[nameganz]</h1>
   <h3>Allgemeine Daten</h3>
   <table style='height:500px'>
    <tr>
     <td width='25%'>
      <b>Rasse</b>
     </td>
     <td width='25%'>
      $Data[rasse]
     </td>
     <td rowspan='9' width='50%' class='ausnahme'>
      <a href='http://rge.bplaced.net/filemanager/Pferde/hengste/$Data[name]/daten/fotos.htm' 

target='allgemein'>Fotoalbum ansehen</a> - <s><a target='allgemein'>Erfolge ansehen</a></s>
      <iframe 

src='http://rge.bplaced.net/filemanager/Pferde/hengste/$Data[name]/daten/fotos.htm' 

name='allgemein' scrolling='auto' style='width:100%; height:100%; border:0px none; top:0px 

FILTER: chroma (color=#ffffff);' frameborder='0'></iframe>
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Geschlecht</b>
     </td>
     <td width='25%'>
      Hengst
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Alter</b>
     </td>
     <td width='25%'>
      $Data[alter] Jahre
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Geburtsjahr</b>
     </td>
     <td width='25%'>
      *$Data[jahr] RGE
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Stockmaß</b>
     </td>
     <td width='25%'>
      $Data[stm]
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Farbe</b>
     </td>
     <td width='25%'>
      $Data[farbe]
     </td>
    </tr>
    <tr>
     <td rowspan='2' width='25%'>
      <b>Abzeichen</b>
     </td>
     <td width='25%'>
      $Data[kopf]
     </td>
    </tr>
    <tr>
     <td width='25%'>
      $Data[beine]
     </td>
    </tr>
    <tr>
     <td colspan='2' width='50%'>
      <h4>Charakter</h4>
      $Data[charakter]
     </td>
    </tr>
   </table><p/>

   <h3>Ausbildung und Potenzial</h3>
   <table>
    <tr>
     <td width='33%'>
     </td>
     <td width='33%'>
      <b>Ausbildung</b>
     </td>
     <td width='33%'>
      <b>Potenzial</b>
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Dressur</b>
     </td>
     <td width='33%'>
      $Data[adressur]
     </td>
     <td width='33%'>
      $Data[pdressur]
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Springen</b>
     </td>
     <td width='33%'>
      $Data[aspringen]
     </td>
     <td width='33%'>
      $Data[pspringen]
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Geländespringen</b>
     </td>
     <td width='33%'>
      $Data[agelaende]
     </td>
     <td width='33%'>
      $Data[pgelaende]
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Distanz</b>
     </td>
     <td width='33%'>
      $Data[adistanz]
     </td>
     <td width='33%'>
      $Data[pdistanz]
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Fahren</b>
     </td>
     <td width='33%'>
      $Data[afahren]
     </td>
     <td width='33%'>
      $Data[pfahren]
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Sonstiges</b>
     </td>
     <td width='33%'>
      $Data[asonst]
     </td>
     <td width='33%'>
      $Data[psonst]
     </td>
    </tr>
   </table><p/>

   <h3>Zuchtdaten</h3>
   <table>
    <tr>
     <td width='50%' rowspan='7' class='ausnahme'>
      <a href='http://rge.bplaced.net/filemanager/Pferde/hengste/$Data[name]/daten/zucht.htm' 

target='zucht'>Nachkommen ansehen</a> - <s><a target='zucht'>Auszeichnungen ansehen</a></s>
      <iframe 

src='http://rge.bplaced.net/filemanager/Pferde/hengste/$Data[name]/daten/zucht.htm' name='zucht' 

scrolling='auto' style='width:100%; height:100%; border:0px none; top:0px FILTER: chroma 

(color=#ffffff);' frameborder='0'></iframe>
     </td>
     <td width='25%'>
      <b>Züchter</b>
     </td>
     <td width='25%'>
      <a href='$Data[addyzuechter]' target='blank'>$Data[zuechter]</a>
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Decktaxe</b>
     </td>
     <td width='25%'>
      $Data[taxe]
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Zulassung</b>
     </td>
     <td width='25%'>
      $Data[zulassung]
     </td>
    </tr>
    <tr>
     <td width='50%' colspan='2'>
      <h4>Kurze Abstammung</h4>
     </td>
    </tr>
    <tr>
     <td width='25%' rowspan='2'>
      $Data[nameganz]
     </td>
     <td width='25%'>
      $Data[vater]
     </td>
    </tr>
    <tr>
     <td width='25%'>
      $Data[mutter]
     </td>
    </tr>
    <tr>
     <td width='50%' colspan='2'>
      <s><a href=''>Ausführliche Abstammung</a></s>
     </td>
    </tr>
   </table><p/>

   <h3>Sonstige Daten</h3>
   <table>
    <tr>
     <td width='25%'>
      <b>Besitzer</b>
     </td>
     <td width='25%'>
      Res Gestae Equorum
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Vorbesitzer</b>
     </td>
     <td width='25%'>
      <a href='$Data[addyvorbesi]' target='blank'>$Data[vorbesi]</a>
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Turnierreiter</b>
     </td>
     <td width='25%'>
      $Data[turnier]
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Gesundheit</b>
     </td>
     <td width='25%'>
      gesund, entwurmt und geimpft
     </td>
    </tr>
   </table><p/>
  </div>";
  }
  ?>
  <hr noshade>
  <i>© by Leila | www.rge.de.tc</i>
 </body>
</html>
Bah-bah-pfui-wesen
also ich habs jetz geschafft hab aber jetz n anderes Problem bei mir steht nämlich immer das Pferd existiert nicht und ich weiß nicht worans liegt könnt ihr mal durchgucken?

EDIT: habs Problem behoben xD manchmal hilft nachdenken xD hatte vergessen das er nur die Pferde ausgibt die keinen besitzer haben xD bei mir stand aber Besitzer: niemand xD jaja so is das halt Zunge raus

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:

<html>
<head>
<title>RV zur Linde</title>
<link rel=stylesheet href=style.css type=text/css>
</head>
<body><p class="head">Pferdeprofil</p>
<center>
<?php

include("Datenbank.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 );


echo "<a href="Pferd.php?id=$id">Allgemeines</a> && <a href="Pferd2.php?id=$id">Ausbildung &amp; Zucht</a> - - <a href="Pferd.php?id=$id">Fotoalbum</a><br><br>

<b>Allgemeines zu $Data[Name]</b><br><br>
$Data[Name]<br>
$Data[Rasse]<br>
$Data[Geschlecht]<br>
$Data[Jahrgang]<br><br>
 <b>Charakter</b> <br>

$Data[Charakter]";
}
?>
</center>
</body>
</html>
Nanni
Zeile 22:
else {
$Data = mysql_fetch_array( $Ergebnis );

Stattdessen:
else {
while($Data = mysql_fetch_array($Ergebnis))

Keine Ahnung, ob das der Fehler ist, aber das einzige was mir aufgefallen is.
Leila
naja, mein Fehler ist jetzt behoben, jetzt bekomm ich in der Tabelle allerdings keine Daten, also einfach nur den leeren Steckie

http://rge.bplaced.net/filemanager/Pferd...p?name=callisto

php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:

<?
// Hostname oder IP des MySQL-Servers, bei Funpic localhost
$sqlhost = "localhost";
// Username und Passwort
$sqluser = "rge";
$sqlpassword = "****";
// Name der Datenbank, bei Funpic dein Nickname.
$sqldb = "rge";

// Verbindung herstellen
mysql_connect($sqlhost,$sqluser,$sqlpassword) or die ("Keine Verbindung möglich"); 

mysql_select_db($sqldb) or die ("Die Datenbank existiert 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:
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:
<html>
 <head>
  <link rel="stylesheet" type="text/css" 

href="http://rge.bplaced.net/filemanager/allgemein/style.css">
  <meta http-equiv="expires" content="0">
 </head>

 <body>
<?php

include("http://rge.bplaced.net/datenbank.php");

$name "$_GET[name]";

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

else {
while($Data mysql_fetch_array($Ergebnis));

echo "
  <div>
   <h1><font class='titel'>$Data[titel]</font> $Data[nameganz]</h1>
   <h3>Allgemeine Daten</h3>
   <table style='height:500px'>
    <tr>
     <td width='25%'>
      <b>Rasse</b>
     </td>
     <td width='25%'>
      $Data[rasse]
     </td>
     <td rowspan='9' width='50%' class='ausnahme'>
      <a href='http://rge.bplaced.net/filemanager/Pferde/hengste/$Data[name]/daten/fotos.htm' 

target='allgemein'>Fotoalbum ansehen</a> - <s><a target='allgemein'>Erfolge ansehen</a></s>
      <iframe 

src='http://rge.bplaced.net/filemanager/Pferde/hengste/$Data[name]/daten/fotos.htm' 

name='allgemein' scrolling='auto' style='width:100%; height:100%; border:0px none; top:0px 

FILTER: chroma (color=#ffffff);' frameborder='0'></iframe>
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Geschlecht</b>
     </td>
     <td width='25%'>
      Hengst
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Alter</b>
     </td>
     <td width='25%'>
      $Data[alter] Jahre
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Geburtsjahr</b>
     </td>
     <td width='25%'>
      *$Data[jahr] RGE
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Stockmaß</b>
     </td>
     <td width='25%'>
      $Data[stm]
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Farbe</b>
     </td>
     <td width='25%'>
      $Data[farbe]
     </td>
    </tr>
    <tr>
     <td rowspan='2' width='25%'>
      <b>Abzeichen</b>
     </td>
     <td width='25%'>
      $Data[kopf]
     </td>
    </tr>
    <tr>
     <td width='25%'>
      $Data[beine]
     </td>
    </tr>
    <tr>
     <td colspan='2' width='50%'>
      <h4>Charakter</h4>
      $Data[charakter]
     </td>
    </tr>
   </table><p/>

   <h3>Ausbildung und Potenzial</h3>
   <table>
    <tr>
     <td width='33%'>
     </td>
     <td width='33%'>
      <b>Ausbildung</b>
     </td>
     <td width='33%'>
      <b>Potenzial</b>
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Dressur</b>
     </td>
     <td width='33%'>
      $Data[adressur]
     </td>
     <td width='33%'>
      $Data[pdressur]
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Springen</b>
     </td>
     <td width='33%'>
      $Data[aspringen]
     </td>
     <td width='33%'>
      $Data[pspringen]
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Geländespringen</b>
     </td>
     <td width='33%'>
      $Data[agelaende]
     </td>
     <td width='33%'>
      $Data[pgelaende]
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Distanz</b>
     </td>
     <td width='33%'>
      $Data[adistanz]
     </td>
     <td width='33%'>
      $Data[pdistanz]
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Fahren</b>
     </td>
     <td width='33%'>
      $Data[afahren]
     </td>
     <td width='33%'>
      $Data[pfahren]
     </td>
    </tr>
    <tr>
     <td width='33%'>
      <b>Sonstiges</b>
     </td>
     <td width='33%'>
      $Data[asonst]
     </td>
     <td width='33%'>
      $Data[psonst]
     </td>
    </tr>
   </table><p/>

   <h3>Zuchtdaten</h3>
   <table>
    <tr>
     <td width='50%' rowspan='7' class='ausnahme'>
      <a href='http://rge.bplaced.net/filemanager/Pferde/hengste/$Data[name]/daten/zucht.htm' 

target='zucht'>Nachkommen ansehen</a> - <s><a target='zucht'>Auszeichnungen ansehen</a></s>
      <iframe 

src='http://rge.bplaced.net/filemanager/Pferde/hengste/$Data[name]/daten/zucht.htm' name='zucht' 

scrolling='auto' style='width:100%; height:100%; border:0px none; top:0px FILTER: chroma 

(color=#ffffff);' frameborder='0'></iframe>
     </td>
     <td width='25%'>
      <b>Züchter</b>
     </td>
     <td width='25%'>
      <a href='$Data[addyzuechter]' target='blank'>$Data[zuechter]</a>
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Decktaxe</b>
     </td>
     <td width='25%'>
      $Data[taxe]
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Zulassung</b>
     </td>
     <td width='25%'>
      $Data[zulassung]
     </td>
    </tr>
    <tr>
     <td width='50%' colspan='2'>
      <h4>Kurze Abstammung</h4>
     </td>
    </tr>
    <tr>
     <td width='25%' rowspan='2'>
      $Data[nameganz]
     </td>
     <td width='25%'>
      $Data[vater]
     </td>
    </tr>
    <tr>
     <td width='25%'>
      $Data[mutter]
     </td>
    </tr>
    <tr>
     <td width='50%' colspan='2'>
      <s><a href=''>Ausführliche Abstammung</a></s>
     </td>
    </tr>
   </table><p/>

   <h3>Sonstige Daten</h3>
   <table>
    <tr>
     <td width='25%'>
      <b>Besitzer</b>
     </td>
     <td width='25%'>
      Res Gestae Equorum
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Vorbesitzer</b>
     </td>
     <td width='25%'>
      <a href='$Data[addyvorbesi]' target='blank'>$Data[vorbesi]</a>
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Turnierreiter</b>
     </td>
     <td width='25%'>
      $Data[turnier]
     </td>
    </tr>
    <tr>
     <td width='25%'>
      <b>Gesundheit</b>
     </td>
     <td width='25%'>
      gesund, entwurmt und geimpft
     </td>
    </tr>
   </table><p/>
  </div>";
  }
  ?>
  <hr noshade>
  <i>© by Leila | www.rge.de.tc</i>
 </body>
</html>
Nedrsa
@ Leila:
Hmm...probier mal, z.B. bei Rasse, das hier:

php:
1:
$Data[rasse]
mit diesem zu ersetzen:
php:
1:
<?php echo"$Data[rasse]?>


Bin mir nicht sicher, bei mir funzt es halt so.^^ Hab aber die Tabelle außerhalb des PHP-Teils...
Leila
naja, im Startpost sind im echo auch HTML-Befehle drin und laut den Tutorialseiten soll das ja auch kein Problem sein. Aber der zeigt wirklich keinen einzigen Wert aus der Tabelle an...
Außerdem würde das dann an den Stellen mit den Iframes und den Links nimmer gehen
Leila
naja, Nanni hatte das weiter oben geschrieben für nen anderen Beitrag. Ich kannd ka mal wieder ändern...

jetzt klappts, danke smile
.egypt <3
Wisst ihr wo ein Toutorial für XAMPP geschrieben ist ? xD
Rory
Irgendwie häng ich mit an nem Fehler auf smile

php:
1:
$Ergebnis mysql_query("SELECT * FROM Pferd WHERE Besitzer != '' ORDER BY 'Besitzer'")


Kaum gebe ich Order by Besitzer ein, zeigt es mir an, dass es keine Pferde hat?!

Danke Lg
Melli
Du ordnest es nach Besitzer? Oha.
Normal ordnet man es z.B. Alphabetisch. Oder halt nicht oder sowas. ;D
Marina347
Es funktioniert *freu*
Vielen lieben Dank!
_negel
Vielen Dank smile
Klappt wunderprächtig großes Grinsen
Werd dann mal versuchen, das ganze auszuweiten..
Sehr schönes Tut smile

edit: Klappt sogar. großes Grinsen
Ich mach es mir wahrscheinlich ends kompliziert, aber es klappt großes Grinsen
Morgan Girl
//edit
Fehler selber gefunden
(groß- und kleinschreibung ist eine schwierige sache)
candys
so jetzt brauche ich nochmal einen rat und zwar will ich Bilder aus der DB auslesen lassen und habe dazu den Befehl
code:
1:
$Data[Bild_1]
eingefügt jetzt wird mir aber immer eine Fehlermeldung angezeigt an den stellen wo die Bilder hinkommen.


php:
1:
2:
3:
4:
5:
6:
7:
NoticeUndefined indexBild_1 in /var/www/html/web1252/html/VRH/pferd.php on line 43

NoticeUndefined indexBild2 in /var/www/html/web1252/html/VRH/pferd.php on line 540

NoticeUndefined indexBild3 in /var/www/html/web1252/html/VRH/pferd.php on line 540

NoticeUndefined indexBild4 in /var/www/html/web1252/html/VRH/pferd.php on line 541



So sieht mein Code aus:

Pferd.php


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:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>RV Bountyhunters</title>
<link rel=stylesheet href=style.css type=text/css>
</head>
<body>
<center>
  <p>
    <?php

// Verbindung zur Datenbank
include("mysql.php");
error_reporting(E_ALL);
// 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 verkaufspferde where id='$id'" );
if (@mysql_num_rows($Ergebnis) == 0) {
$Anzeige "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 "
<b>Allgemeines zu $Data[Name]</b><br><br>
<table width="500" border="1" align="center" bordercolor="#000000" class="Stil7">
  <tr>
    <td colspan="4" bgcolor="#dad7c0" class="Stil7"><center>
      <b>Lancelot</b>
    </center></td>
  </tr>
  <tr>
    <td colspan="4">      
      <center>
         $Data[Bild_1] />    
      </center>    </td>
  </tr>
  <tr>
    <td width="276">      
      <center>
        <b>        Bild Copyright        </b>
        </center></td>
    <td colspan="3">      
      <center>
        <span class="Stil2"> <a title="Sportpferde Vera Fürst" href="http://www.vera-fuerst.de">Sportpferde Vera Fürst</aund <br />
        <a title="Pferdefotografie MTW-Office" href="http://www.mtw-office.de">Pferdefotografie MTW-Office</a></span>
      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Name        </b>
        </center></td>
    <td colspan="3">    
      <center>
        $Data[Name]
      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Rasse        </b>
        </center></td>
    <td colspan="3">    
      <center>
$Data[Rasse]      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Alter        </b>
        </center></td>
    <td colspan="3">    
      <center>
        $Data[Alter]
      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Geschlecht        </b>
        </center></td>
    <td colspan="3">    
      <center>
        $Data[Geschlecht]
      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Fellfarbe        </b>
        </center></td>
    <td colspan="3">    
      <center>
        $Data[Fellfarbe]      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Abzeichen                </b>
        </center></td>
    <td colspan="3">    
      <center>
        $Data[Abzeichen]      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Stockmass        </b>
        </center></td>
    <td colspan="3">    
      <center>
       $Data[Stockmass]
      </center>    </td>
  </tr>
  <tr class="Stil7">
    <td colspan="4" bgcolor="#dad7c0">      <p align="center"><b>      Charakter      </b></p></td>
  </tr>
  <tr>
    <td colspan="4">      
        <center>
         $Data[Charakter]
        </center>    </td>
  </tr>
  <tr>
    <td colspan="4">      
      <center>
      </center>    </td>
  </tr>
  <tr>
    <td colspan="4" bgcolor="#dad7c0">      
      <center>
        <b>        Veranlagungen        </b>
    </center></td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Disziplin        </b>
        </center></td>
    <td width="141">      <center>
      <b>        Ausbildung      </b>
    </center></td>
    <td colspan="2"><center>
      <b>      Potential      </b>
    </center></td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Dressur                </b>
        </center></td>
    <td>      <center>
      $Data[Dressur]
    </center>    </td>
    <td colspan="2"><center>
      $Data[PDressur]
    </center></td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Springen        </b>
        </center></td>
    <td>      <center>
     $Data[Springen]
      </center>    </td>
    <td colspan="2"><center>
$Data[PSpringen]    </center></td>
  </tr>
  <tr>
    <td>      
      <center>
          <b>        Vielseitigkeit/Military        </b>
      </center>    </td>
    <td>      
      <center>
        $Data[Vielseitigkeit]
      </center></td>
    <td colspan="2"><center>
      $Data[PVielseitigkeit]
    </center></td>
  </tr>
  <tr>
    <td>      
      <center>
          <b>        Western        </b>
      </center>    </td>
    <td>      
      <center>
        $Data[Western]
      </center>      </td>
    <td colspan="2"><center>
     $Data[PWestern]
    </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
          <b>        Rennen        </b>
      </center>    </td>
    <td>      
      <center>
       $Data[Rennen]
      </center>      </td>
    <td colspan="2"><center>
      $Data[PRennen]
    </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Sonstiges        </b>
        </center></td>
    <td>      <center>
     $Data[Sonstiges]
      </center>    </td>
    <td colspan="2"><center>
     
$Data[PSonstiges]
    </center></td>
  </tr>
  <tr>
    <td colspan="4" bgcolor="#dad7c0">      
      <center>
        <b>        Erfolge            </b>
    </center></td>
  </tr>
  <tr>
    <td colspan="4">      
        <center>
            <textarea name="textarea" cols="25" rows="5" 233px;=84px=height:=></textarea>
          </center>    </td>
  </tr>
  <tr>
    <td colspan="4">      
      <center>
      </center>    </td>
  </tr>
  <tr>
    <td colspan="4" bgcolor="#dad7c0">      
      <center>
        <b>        Zucht        </b>
    </center></td>
  </tr>
  <tr>
    <td colspan="4">      
        <center class="Stil9">
          <font face="Verdana"><b>Abstammung</b></font>
                                                                                                                </center>    </td>
  </tr>
  <tr>
    <td rowspan="2">      
      <center>
        $Data[Vater]
    </center></td>
    <td colspan="3">      <center>
      $Data[Vvater]
    </center></td>
  </tr>
  <tr>
    <td colspan="3">      <center>
      $Data[Vatermutter]
    </center></td>
  </tr>
  <tr>
    <td rowspan="2">      
      <center>
        $Data[Mutter]
    </center></td>
    <td colspan="3">      <center>
      $Data[Muttervater]
    </center></td>
  </tr>
  <tr>
    <td colspan="3">      <center>
     $Data[Muttermutter]
    </center></td>
  </tr>
  <tr>
    <td colspan="4" bgcolor="#dad7c0">      
      <center>
        <b>        Nachkommen        </b>
        </center></td>
  </tr>
  <tr>
    <td>      
      <center>
        Hengste
    </center></td>
    <td colspan="3">      <center>
        Stuten
    </center></td>
  </tr>
  <tr>
    <td colspan="4" bgcolor="#dad7c0">      
      <center>
        <b>        Zuchtzulassung        </b>
    </center></td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Gekört        </b>
        </center></td>
    <td colspan="3">      <center>
      Nein
      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Körgrafik        </b>
        </center></td>
    <td colspan="3">      <center>
      /
      </center>    </td>
  </tr>
  <tr>
    <td colspan="4">      
      <center>
      </center>    </td>
  </tr>
  <tr>
    <td colspan="4" bgcolor="#dad7c0">      
      <center>
        <b>        Gesundheit        </b>
    </center></td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Tierarzt        </b>
        </center></td>
    <td colspan="3">      <center>
      <b>        Hufschmied      </b>
    </center></td>
  </tr>
  <tr bordercolor="#000000">
    <td><p align="center"><b><u>Letzter Besuch</u></b></p>
    <p align="center">$Data[Tierarzt]</p>
    <p align="center"><u><b>Neuer Besuch</b></u></p>
    <p align="center">$Data[Tierarzt_neu]</p></td>
    <td colspan="3"><p align="center"><u><b>Letzter Besuch</b></u></p>
    <p align="center">$Data[Hufschmied]</p>
    <p align="center"><u><b>Neuer Besuch</b></u></p>
    <p align="center">$Data[Hufschmied_neu]</p></td>
  </tr>
  <tr>
    <td>      
      <center>
        Impfung <font face="Verdana" size="1">
        <input type="checkbox" disabled="disabled" value="ON" checked="CHECKED" />
        </font>
      </center></td>
    <td colspan="3">      <center>
        Beschlag vorne <font face="Verdana" size="1">
        <input disabled="disabled" type="checkbox" checked="checked" value="ON" />
        </font>
      </center></td>
  </tr>
  <tr>
    <td>      
      <center>
        Wurmkur
        <input disabled="disabled" type="checkbox" checked="checked" value="ON" />
        </font>
      </center></td>
    <td colspan="3">      <center>
        Beschlag hinten
        <input disabled="disabled" type="checkbox" checked="checked" value="ON" />
        </font>
      </center></td>
  </tr>
  <tr>
    <td>      
      <center>
        Gesund?
        <input disabled="disabled" type="checkbox" checked="checked" value="ON" />
      </center></td>
    <td colspan="3">      <center>
        In Ordnung?
             <input disabled="disabled" type="checkbox" checked="checked" value="ON" />
        </font>
      </center></td>
  </tr>
  <tr>
    <td colspan="4">      
      <center>
      </center>          <center>
      </center></td>
  </tr>
  <tr>
    <td colspan="4" bgcolor="#dad7c0">      
      <center>
        <strong>Verhalten und Eigenschaften</font></strong>
      </center>          <center>
      </center></td>
  </tr>
  <tr bordercolor="#000000">
    <td><p align="center"><b>Verhalten beim Tierarzt</b></p></td>
    <td><center>
      100%
    </center></td>
    <td><p align="center"><b>
      Turniere </b></p></td>
    <td width="30">100%</td>
  </tr>
  <tr bordercolor="#000000">
    <td><p align="center"><b>Verhalten beim Schmied</font></b></p></td>
    <td><p align="center">100%</font></p></td>
    <td><p align="center"><b>Menschen gegenüber</font></b></p></td>
    <td><p align="center">100%</font></p></td>
  </tr>
  <tr bordercolor="#000000">
    <td><p align="center"><b>Verhalten im Verkehr</font></b></p></td>
    <td><p align="center">100%</font></p></td>
    <td><p align="center"><b>Pferden gegenüber</font></b></p></td>
    <td><p align="center">100%</font></p></td>
  </tr>
  <tr bordercolor="#000000">
    <td><p align="center"><b>Geländesicher</font></b></p></td>
    <td><p align="center">100%</font></p></td>
    <td><p align="center"><b>Halle</font></b></p></td>
    <td><p align="center">100%</font></p></td>
  </tr>
  <tr>
    <td><p align="center"><b>Verladefromm</font></b></p></td>
    <td><p align="center">100%</font></p></td>
    <td><p align="center"><b>Platz</font></b></p></td>
    <td><p align="center">100%</font></p></td>
  </tr>
  <tr>
    <td><p align="center"><b>Gesundheit</font></b></p></td>
    <td><p align="center">100%</font></p></td>
    <td><p align="center"><b>Schreckhaftigkeit</font></b></p></td>
    <td><p align="center">0%</font></p></td>
  </tr>
  <tr>
    <td colspan="4">      
      <center>
      </center>          <center>
      </center></td>
  </tr>
  <tr>
    <td colspan="4" bgcolor="#dad7c0">      
      <center>
        <strong>Unterkunft</strong>
      </center>          <center>
      </center></td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>Stall</b></font>
      </center>    </td>
    <td colspan="3">      <center>
$Data[Stall]      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Weide</font>        </b>
      </center>    </td>
    <td colspan="3">      <center>
      $Data[Koppel] 
      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Zu Beachten        </b>
      </center>    </td>
    <td colspan="3">      <center>
     $Data[Zu_Beachten]
      </center>    </td>
  </tr>
  <tr>
    <td colspan="4">      
      <center>
      </center>          <center>
      </center></td>
  </tr>
  <tr>
    <th colspan="4" bgcolor="#dad7c0">      
      <center>
        <strong>Kaufinformation</font></strong>
      </center>          <center>
      </center></th>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Preis        </b>
      </center>    </td>
    <td colspan="3">      <center>
      $Data[Preis]
    </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Pfleger         </b>
      </center>    </td>
    <td colspan="3">      <center>
      $Data[Pfleger]
      </center>    </td>
  </tr>
  <tr>
    <td>      
      <center>
        <b>        Besitzer        </b>
      </center>    </td>
    <td colspan="3">      <center>
      $Data[Besitzer] 
    </center>    </td>
  </tr>
  <tr>
    <td><center>
      <b>      Reserviert für      </b>
    </center></td>
    <td colspan="3"><center>
      / 
    </center></td>
  </tr>
  <tr>
    <td colspan="4" bgcolor="#dad7c0"><center>
      <b>       Weitere Bilder von  $Data[Name]     </b>
    </center></td>
  </tr>
  <tr>
    <td colspan="4"><p$Data[Bild2]$Data[Bild3]</p>
    <p>$Data[Bild4]</p></td>
  </tr>
  
  <tr>
    <td colspan="4"><center>
      <b>&copy;</b>by <span class="Stil2"> <a title="Sportpferde Vera Fürst" href="http://www.vera-fuerst.de">Sportpferde Vera Fürst</aund <br />
        <a title="Pferdefotografie MTW-Office" href="http://www.mtw-office.de">Pferdefotografie MTW-Office</a></span>
    </center>    </td>
  </tr>
</table>




";
}
?>
  </center>
</body>
</html>

Die Bilder sind so <img src="images/pferde/verkauf/1215366386_dsc_3535.jpg" alt="Lancelot" width="200" height="301" /> in der Db eingetragen.

Wo liegt mein fehler??
+Debbie+
Mh... der Stecki funktioniert leider nicht ...

Parse error: syntax error, unexpected $end in /users/appledings/www/Frankental/Pferd.php on line 427

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:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

  <link rel="stylesheet" href="style.css">
  <title>Startseite</title>


</head>


<body>

<center>

<?php

// Verbindung zur Datenbank
include("db.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 westernpferde" );
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

?>

<table class="table" style="border-collapse: collapse;" border="1" cellpadding="2" cellspacing="2">

  <tbody>

    <tr>

      <td class="zeileblue" colspan="3" width="200"><b>Allgemeines</b></td>

    </tr>

    <tr>

      <td rowspan="7" width="200">Bild<br>
      </td>

      <td style="text-align: left;" class="steckizeile" width="200"><b>Name</b></td>

      <td style="text-align: left;" width="200"><?php echo "$Data[name]?></td>

    </tr>

    <tr>

      <td style="text-align: left;" class="steckizeile" width="200"><b>Alter</b></td>

      <td style="text-align: left;" width="200"><?php echo "$Data[geburt]?></td>

    </tr>

    <tr>

      <td style="text-align: left;" class="steckizeile" width="200"><b>Geschlecht</b></td>

      <td style="text-align: left;" width="200"><?php echo "$Data[geschlecht]?></td>

    </tr>

    <tr>

      <td style="text-align: left;" class="steckizeile" width="200"><b>Rasse</b></td>

      <td style="text-align: left;" width="200"><?php echo "$Data[rasse]?></td>

    </tr>

    <tr>

      <td style="text-align: left;" class="steckizeile" width="200"><b>Farbe</b></td>

      <td style="text-align: left;" width="200"><?php echo "$Data[farbe]?></td>

    </tr>

    <tr>

      <td style="text-align: left;" class="steckizeile" width="200"><b>Stockma&szlig;</b></td>

      <td style="text-align: left;" width="200"><?php echo "$Data[stockmass]?> cm</td>

    </tr>

    <tr>

      <td style="text-align: left;" class="steckizeile" width="200"><b>Besitzer</b></td>

      <td style="text-align: left;" width="200"><?php echo "$Data[besitzer]?></td>

    </tr>


  </tbody>
</table>

<br>

<table class="table" style="border-collapse: collapse;" border="1" cellpadding="2" cellspacing="2">

  <tbody>

    <tr>

      <td class="zeileblue" width="609"><b>Beschreibung</b></td>

    </tr>

    <tr>

      <td width="609"><?php echo "$Data[beschreibung]?></td>

    </tr>

  </tbody>
</table>

<br>

<table class="table" style="border-collapse: collapse; width: 616px; height: 91px;" border="1" cellpadding="2" cellspacing="2">

  <tbody>

    <tr>

      <td class="zeileblue" colspan="2" width="302"><b>Westernausbildung</b></td>

    </tr>

    <tr>

      <td style="font-weight: bold;" class="steckizeile" width="200">Disziplin<br>

      </td>

      <td style="font-weight: bold;" width="303">Ausbildung</td>

    </tr>

    <tr>

      <td class="steckizeile" width="303">Halter<br>

      </td>

      <td style="" width="302"><?php echo "$Data[halter]?></td>

    </tr>

    <tr>

      <td class="steckizeile" width="303">Showmanship
at Halter<br>

      </td>

      <td style="" width="302"><?php echo "$Data[showmanship]?></td>

    </tr>

    <tr>

      <td class="steckizeile" width="303">Cutting<br>

      </td>

      <td style="" width="302"><?php echo "$Data[cutting]?></td>

    </tr>

    <tr>

      <td class="steckizeile" width="303">Working
Cow Horse<br>

      </td>

      <td style="" width="302"><?php echo "$Data[cowhorse]?></td>

    </tr>

    <tr>

      <td class="steckizeile" width="303">Pleasure<br>

      </td>

      <td style="" width="302"><?php echo "$Data[pleasure]?></td>

    </tr>

    <tr>

      <td class="steckizeile" width="303">Western
Riding<br>

      </td>

      <td style="" width="302"><?php echo "$Data[westernriding]?></td>

    </tr>

    <tr>

      <td class="steckizeile" width="303">Trail<br>

      </td>

      <td style="" width="302"><?php echo "$Data[trail]?></td>

    </tr>

    <tr>

      <td class="steckizeile" width="303">Horsemanship<br>

      </td>

      <td style="" width="302"><?php echo "$Data[horsemanship]?></td>

    </tr>

    <tr>

      <td class="steckizeile" width="303">Reining<br>

      </td>

      <td style="" width="302"><?php echo "$Data[reining]?></td>

    </tr>

  </tbody>
</table>

<br>

<table style="border-collapse: collapse;" border="1" cellpadding="2" cellspacing="2">

  <tbody>

    <tr>

      <td class="zeileblue" colspan="3" width="200"><b>Abstammung</b></td>

    </tr>

    <tr>

      <td class="zeile" style="font-weight: bold;" rowspan="4" width="200"><?php echo "$Data[vater]?></td>

      <td style="font-weight: bold;" rowspan="2" width="200"><?php echo "$Data[vater1]?></td>

      <td style="font-weight: bold;" rowspan="1" width="200"><?php echo "$Data[vater3]?></td>

    </tr>

    <tr>

      <td rowspan="1" width="200"><?php echo "$Data[mutter3]?></td>

    </tr>

    <tr>

      <td rowspan="2" width="200"><?php echo "$Data[mutter1]?></td>

      <td style="font-weight: bold;" rowspan="1" width="200"><?php echo "$Data[vater4]?></td>

    </tr>

    <tr>

      <td rowspan="1" width="200"><?php echo "$Data[mutter4]?></td>

    </tr>

    <tr>

      <td rowspan="4" width="200"><?php echo "$Data[mutter]?></td>

      <td class="zeile" style="font-weight: bold;" rowspan="2" width="200"><?php echo "$Data[vater2]?></td>

      <td style="font-weight: bold;" rowspan="1" width="200"><?php echo "$Data[vater5]?></td>

    </tr>

    <tr>

      <td rowspan="1" width="200"><?php echo "$Data[mutter5]?></td>

    </tr>

    <tr>

      <td rowspan="2" width="200"><?php echo "$Data[mutter2]?></td>

      <td class="zeile" style="font-weight: bold;" rowspan="1" width="200"><?php echo "$Data[vater6]?></td>

    </tr>

    <tr>

      <td rowspan="1" width="200"><?php echo "$Data[mutter6]?></td>

    </tr>

  </tbody>
</table>

<br>

<table style="border-collapse: collapse; width: 616px; height: 37px;" border="1" cellpadding="2" cellspacing="2">

  <tbody>

    <tr>

      <td class="zeileblue" colspan="4" width="150"><b>Z&uuml;chterisches</b></td>

    </tr>

    <tr>

      <td class="zeile" style="font-weight: bold;" width="150">Z&uuml;chter</td>

      <td width="150"><?php echo "$Data[zuechter]?></td>

      <td class="steckizeile" style="font-weight: bold;" width="150">Vorbesitzer</td>

      <td width="150"><?php echo "$Data[vorbesitzer]?></td>

    </tr>

    <tr>

      <td class="zeile" style="font-weight: bold;" width="150">Gek&ouml;rt als</td>

      <td width="150"><?php echo "$Data[zuchtzulassung]?></td>

      <td class="steckizeile" style="font-weight: bold;" width="150">Bewertungsb&ouml;gen</td>

      <td width="150"><?php echo "$Data[bewertung]?></td>

    </tr>

    <tr>

      <td class="zeile" colspan="4" width="150"><b>Nachzucht</b></td>

    </tr>

    <tr>

      <td colspan="4" width="150">keine</td>

    </tr>

  </tbody>
</table>

<br>

<table style="border-collapse: collapse; width: 616px; height: 37px;" border="1" cellpadding="2" cellspacing="2">

  <tbody>

    <tr>

      <td class="zeileblue" colspan="4" width="150"><b>Erfolge</b></td>

    </tr>

    <tr>

      <td class="zeile" style="font-weight: bold;" width="100">Platz</td>

      <td style="font-weight: bold;" class="zeile" width="200">Pr&uuml;fung</td>

      <td class="zeile" style="font-weight: bold;" width="150">Ort</td>

      <td style="font-weight: bold;" class="zeile" width="150">Reiter</td>

    </tr>

  </tbody>
</table>
 <br>

<table class="table" style="border-collapse: collapse;" border="1" cellpadding="2" cellspacing="2">

  <tbody>

    <tr>

      <td class="zeileblue" width="609"><b>Fotoalbum</b></td>

    </tr>

    <tr>

      <td width="609">Bilder</td>

    </tr>

  </tbody>
</table>

</center>

</body>
</html>