-

Thorim
versuch mal
php:
1:
...<?php echo $Data['ID']; ?>...


PS: sicher, das das Feld 'ID' heißt, also großgeschrieben ist?


edit: vllt
php:
1:
.../Turniergrafiken<?php echo '/' $Data['ID']; ?>.jpg...
?
fjorda
Super Tut großes Grinsen


Es klappt alles super nur wollte ich jetzt noch ein paar Spalten dazufügen kam gleich diese Meldung von MYSQL

MySQL meldet:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL' at line 1

Typ ist Varchar und Länge 255 habe auch schon andere Typen ausprobiert und herumprobiert aber nichts geht... (feld Stockmaß)
sina91
Mh, eigentlich musste es gehen, ich würde nur statt Stockmaß mal Stockmass schreiben, vllt klappt es dadurch schon, wobei ich mir eigentlich nicht vorstellen kann, dass darin der Fehler liegt.
.chilli
Mit den deutschen "Sonderzeichen" ä,ö,ü,ß gibt's manchmal Probleme. Ich habe das Feld bei mir wie Sina sagte mit ss statt ß geschrieben und hatte danach keine Fehlermeldung mehr.
kirou
-
Alaska.
Ich kann den Fehler nicht finden, keine Ahnung was der von mit will.

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:
<html>
  <head>
    <title>Steckbrief</title>
       <link rel=stylesheet href=style.css type=text/css>
   </head>

<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


<table align="center" cellpadding="4" cellspacing="1" border="0" width="450" class="tableinborder">
           <tr>
              <td class="tabletitel" colspan="4" align="center"><b>$Data[Name]</b></td>
           </tr>
           <tr>
              <td class="tablea" rowspan="4" colspan="2"><center><img border="0" src="$Data[bild0]"><br><a href="$Data[Copy_url]">$Data[Copy]</a></td>
              <td class="tableb" colspan="2"><b>Alter</b><br>$Data[AlterJahre alt</td>
           </tr>
           <tr>
              <td class="tableb" colspan="2"><b>Wert</b><br>$Data[Preis],-</td>
           </tr>
       <tr>
              <td class="tableb" colspan="2"><b>Besitzer</b><br>$Data[Besitzer]</td>
           </tr>
           <tr>
              <td class="tableb" colspan="2"><b>Stall</b><br>$Data[Stall]</td>
           </tr>
           <tr>
              <td class="tabletitel" colspan="4" align="center"><b>Vorgeschichte</b></td>
    </tr>
    <tr>
              <td class="tableb" colspan="4" align="center"><div style="width:430px;height:100px;overflow:auto">$Data[Vorgeschichte]</div></td>
           </tr>
           <tr>
              <td class="tabletitel" colspan="4" align="center"><b>Charakter</b></td>
    </tr>
    <tr>
              <td class="tablea" colspan="4" align="center"><div style="width:430px;height:150px;overflow:auto">$Data[Charakter]</div></td>
           </tr>
          <tr>
              <td class="tabletitel" colspan="4" align="center"><b>Sportliche Ausbildung</b></td>
           </tr>
          <tr>
              <td class="tablea" colspan="4">$Data[Ausbildung]</td>
           </tr>
          <tr>
              <td class="tabletitel" colspan="4" align="center"><b>Sonstiges</b></td>
           </tr>
          <tr>
              <td class="tablea" colspan="2" align="center">Kondition</td>
              <td class="tableb" colspan="2" align="center">$Data[Kondition]</td>
           </tr>
          <tr>
              <td class="tablea" colspan="2" align="center">Vertauen</td>
              <td class="tableb" colspan="2" align="center">$Data[Vertauen]</td>
           </tr>
          <tr>
              <td class="tabletitel" colspan="4" align="center"><b>Stammbaum</b></td>
           </tr>
           <tr>
              <td colspan="4" class="tableb">
       <table width="420" border="0" cellpadding="2" cellspacing="1"  align="center">
              <td class="tableb"></td>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[papa_papa]<br><b>von</b></center></td>
           </tr>
           <tr>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[papa]<br><b>von</b></center></td>
              <td class="tableb"></td>
           </tr>
           <tr>
              <td class="tableb"></td>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[papa_mama]<br><i>aus der</i></center></td>
          </tr>
              <td class="tablea"><center><b>$Data[Name]</b></center></td>
              <td class="tableb"></td>
              <td class="tableb"></td>
           </tr>
           <tr>
              <td class="tableb"></td>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[mama_papa]<br><b>von</b></center></td>
          </tr>
           <tr>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[mama]<br><i>aus der</center></i></td>
              <td class="tableb"></td>
           </tr>
           <tr>
              <td class="tablea"></td>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[mama_mama]<br><i>aus der</i></center></td>
           </tr>
        </table></td>
    </tr>
        
           <tr>
              <td class="tabletitel" colspan="4" align="center">Fotoalbum</td>
           </tr>
    <tr>
              <td class="tablea" colspan="4" align="center">Copyright by <a href="$Data[Copy_url]">$Data[Copy]</a> ($Data[anzahlFoto/s enthalten)</td>
    </tr>
    <tr>
              <td class="tableb" colspan="4" align="center">

while ($i <= $Data[anzahl]) 
{
echo "<img src="http://bajo.kilu.de/Pferde/Fotos/$Data[Name]/$i.png"><br><br>";
$i++;
} 

    </td>
        </tr>
        </table>";
}
?>

        </body>
</html>



Parse error: syntax error, unexpected '<' in /data/multiserv/users/160284/projects/678818/www/Pferde/Pferd.php on line 29
sina91
Kirou:
So müsste es gehen..

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:
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Steckbrief</title>
</head>
<body style="background-color: transparent; color: rgb(0, 0, 0);"
 alink="#ee0000" link="#0000ee" vlink="#551a8b">
<?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 );
 ?>
<table
 style="background-color: transparent; width: 97%; text-align: left; margin-left: auto; margin-right: auto;"
 cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td>
 echo     <table
 style="background-color: transparent; width: 100%; text-align: left; margin-left: auto; margin-right: auto;"
 border="1" cellpadding="2" cellspacing="4">
        <tbody>
          <tr style="font-weight: bold;">
            <td style="background-color: rgb(161, 187, 91);"
 colspan="4" rowspan="1"><?php $Data[Name?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="7"><img
 style="width: 305px; height: 154px;"
 alt="http://i46.tinypic.com/dfah77.png"
 src="http://i46.tinypic.com/dfah77.png"><br>
            </td>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Name</td>
            <td class="tableb"><?php $Data[Name?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Geburtsjahr</td>
            <td class="tableb"><?php $Data[Geburtsjahr?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Geschlecht</td>
            <td class="tableb"><?php $Data[Geschlecht?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Rasse</td>
            <td class="tableb"><?php $Data[Rasse?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Z&uuml;chter</td>
            <td class="tableb"><?php $Data[Züchter?></td>
          </tr>
          <tr>
            <td
 style="font-weight: bold; background-color: rgb(161, 187, 91);"
 class="tablea">Vorbesitzer</td>
            <td class="tableb"><?php $Data[Vorbesitzer?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Besitzer</td>
            <td class="tableb"><?php $Data[Besitzer?></td>
          </tr>
          <tr style="font-weight: bold;">
            <td style="background-color: rgb(161, 187, 91);"
 colspan="4" rowspan="1">Charakter</td>
          </tr>
          <tr>
            <td colspan="4" rowspan="1"><?php $Data[Charakter?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="width: 50%; background-color: rgb(161, 187, 91); font-weight: bold;">Ausbildung</td>
            <td colspan="2" rowspan="1"
 style="width: 50%;"><?php $Data[Ausbildung?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 colspan="2" rowspan="1">Potential</td>
            <td colspan="2" rowspan="1"><?php $Data[Potential?></td>
          </tr>
          <tr>
            <td style="width: 25%;" colspan="1"
 rowspan="8">Unbekannt</td>
            <td style="font-weight: bold; width: 25%;"
 colspan="1" rowspan="4">Unbekannt</td>
            <td style="font-weight: bold; width: 25%;"
 colspan="1" rowspan="2">Unbekannt</td>
            <td style="font-weight: bold; width: 25%;">Unbekannt</td>
          </tr>
          <tr>
            <td>Unbekannt</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="2">Unbekannt</td>
            <td style="font-weight: bold;">Unbekannt</td>
          </tr>
          <tr>
            <td>Unbekannt</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="4">Unbekannt</td>
            <td style="font-weight: bold;" colspan="1"
 rowspan="2">Unbekannt</td>
            <td style="font-weight: bold;">Unbekannt</td>
          </tr>
          <tr>
            <td>Unbekannt</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="2">Unbekannt</td>
            <td style="font-weight: bold;">Unbekannt</td>
          </tr>
          <tr>
            <td>Unbekannt</td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="background-color: rgb(161, 187, 91); font-weight: bold;">Nachkommen</td>
            <td colspan="2" rowspan="1"><?php $Data[Nachkommen?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="background-color: rgb(161, 187, 91); font-weight: bold;">Zuchtzulassung</td>
            <td colspan="2" rowspan="1"><?php $Data[Zuchtzulassung?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="background-color: rgb(161, 187, 91); font-weight: bold;">Erfolge</td>
            <td colspan="2" rowspan="1"><?php $Data[Erfolge?></td>
          </tr>
          <tr>
            <td colspan="4" rowspan="1">Copyright
des Fotos liegt bei cll von <a href="http://www.photofans.de"
 target="_blank">photofans.de</a></td>;
<?php
}

?>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>
</body>
</html>


Fehler bei dir:
In Bereich "echo" müssen " immer mit einem \ davor geschrieben werden, da du sonst den echo Befehl bereits beendest.
Alternativ schreibst du kein echo, sondern an der Stelle, wo Daten über MySQL ausgegeben werden sollen, öffnest du <?php und schließt es danach wieder ?>. Wie gesagt, mit dem Code dürfte es gehen Augenzwinkern


Juli:
So bei dir..
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:
<html>
  <head>
    <title>Steckbrief</title>
       <link rel=stylesheet href=style.css type=text/css>
   </head>

<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 align="center" cellpadding="4" cellspacing="1" border="0" width="450" class="tableinborder">
           <tr>
              <td class="tabletitel" colspan="4" align="center"><b>$Data[Name]</b></td>
           </tr>
           <tr>
              <td class="tablea" rowspan="4" colspan="2"><center><img border="0" src="$Data[bild0]"><br><a href="$Data[Copy_url]">$Data[Copy]</a></td>
              <td class="tableb" colspan="2"><b>Alter</b><br>$Data[Alter] Jahre alt</td>
           </tr>
           <tr>
              <td class="tableb" colspan="2"><b>Wert</b><br>$Data[Preis],-</td>
           </tr>
       <tr>
              <td class="tableb" colspan="2"><b>Besitzer</b><br>$Data[Besitzer]</td>
           </tr>
           <tr>
              <td class="tableb" colspan="2"><b>Stall</b><br>$Data[Stall]</td>
           </tr>
           <tr>
              <td class="tabletitel" colspan="4" align="center"><b>Vorgeschichte</b></td>
    </tr>
    <tr>
              <td class="tableb" colspan="4" align="center"><div style="width:430px;height:100px;overflow:auto">$Data[Vorgeschichte]</div></td>
           </tr>
           <tr>
              <td class="tabletitel" colspan="4" align="center"><b>Charakter</b></td>
    </tr>
    <tr>
              <td class="tablea" colspan="4" align="center"><div style="width:430px;height:150px;overflow:auto">$Data[Charakter]</div></td>
           </tr>
          <tr>
              <td class="tabletitel" colspan="4" align="center"><b>Sportliche Ausbildung</b></td>
           </tr>
          <tr>
              <td class="tablea" colspan="4">$Data[Ausbildung]</td>
           </tr>
          <tr>
              <td class="tabletitel" colspan="4" align="center"><b>Sonstiges</b></td>
           </tr>
          <tr>
              <td class="tablea" colspan="2" align="center">Kondition</td>
              <td class="tableb" colspan="2" align="center">$Data[Kondition]</td>
           </tr>
          <tr>
              <td class="tablea" colspan="2" align="center">Vertauen</td>
              <td class="tableb" colspan="2" align="center">$Data[Vertauen]</td>
           </tr>
          <tr>
              <td class="tabletitel" colspan="4" align="center"><b>Stammbaum</b></td>
           </tr>
           <tr>
              <td colspan="4" class="tableb">
       <table width="420" border="0" cellpadding="2" cellspacing="1"  align="center">
              <td class="tableb"></td>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[papa_papa]<br><b>von</b></center></td>
           </tr>
           <tr>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[papa]<br><b>von</b></center></td>
              <td class="tableb"></td>
           </tr>
           <tr>
              <td class="tableb"></td>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[papa_mama]<br><i>aus der</i></center></td>
          </tr>
              <td class="tablea"><center><b>$Data[Name]</b></center></td>
              <td class="tableb"></td>
              <td class="tableb"></td>
           </tr>
           <tr>
              <td class="tableb"></td>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[mama_papa]<br><b>von</b></center></td>
          </tr>
           <tr>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[mama]<br><i>aus der</center></i></td>
              <td class="tableb"></td>
           </tr>
           <tr>
              <td class="tablea"></td>
              <td class="tableb"></td>
              <td class="tablea"><center>$Data[mama_mama]<br><i>aus der</i></center></td>
           </tr>
        </table></td>
    </tr>
        
           <tr>
              <td class="tabletitel" colspan="4" align="center">Fotoalbum</td>
           </tr>
    <tr>
              <td class="tablea" colspan="4" align="center">Copyright by <a href="$Data[Copy_url]">$Data[Copy]</a> ($Data[anzahl] Foto/s enthalten)</td>
    </tr>
    <tr>
              <td class="tableb" colspan="4" align="center">";

while ($i <= $Data[anzahl]) 
{
echo "<img src="http://bajo.kilu.de/Pferde/Fotos/$Data[Name]/$i.png"><br><br>";
$i++;
} 

    </td>
        </tr>
        </table>";
}
?>

        </body>
</html>
 


Du musst deine Tabelle auch in einen echo Befehl setzen, sonst wird ja nichts groß ausgegeben Augenzwinkern
Alaska.
Ach dankeschön smile
kirou
Dank danke danke Sina, jetzt zeigt er immerhin schon was an, allerdings füllt er die Daten da nicht rein >_<

klick
sina91
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:
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Steckbrief</title>
</head>
<body style="background-color: transparent; color: rgb(0, 0, 0);"
 alink="#ee0000" link="#0000ee" vlink="#551a8b">
<?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 );
 ?>
<table
 style="background-color: transparent; width: 97%; text-align: left; margin-left: auto; margin-right: auto;"
 cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td>
 <table
 style="background-color: transparent; width: 100%; text-align: left; margin-left: auto; margin-right: auto;"
 border="1" cellpadding="2" cellspacing="4">
        <tbody>
          <tr style="font-weight: bold;">
            <td style="background-color: rgb(161, 187, 91);"
 colspan="4" rowspan="1"><?php $Data[Name?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="7"><img
 style="width: 305px; height: 154px;"
 alt="http://i46.tinypic.com/dfah77.png"
 src="http://i46.tinypic.com/dfah77.png"><br>
            </td>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Name</td>
            <td class="tableb"><?php $Data[Name?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Geburtsjahr</td>
            <td class="tableb"><?php $Data[Geburtsjahr?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Geschlecht</td>
            <td class="tableb"><?php $Data[Geschlecht?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Rasse</td>
            <td class="tableb"><?php $Data[Rasse?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Z&uuml;chter</td>
            <td class="tableb"><?php $Data[Züchter?></td>
          </tr>
          <tr>
            <td
 style="font-weight: bold; background-color: rgb(161, 187, 91);"
 class="tablea">Vorbesitzer</td>
            <td class="tableb"><?php $Data[Vorbesitzer?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Besitzer</td>
            <td class="tableb"><?php $Data[Besitzer?></td>
          </tr>
          <tr style="font-weight: bold;">
            <td style="background-color: rgb(161, 187, 91);"
 colspan="4" rowspan="1">Charakter</td>
          </tr>
          <tr>
            <td colspan="4" rowspan="1"><?php $Data[Charakter?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="width: 50%; background-color: rgb(161, 187, 91); font-weight: bold;">Ausbildung</td>
            <td colspan="2" rowspan="1"
 style="width: 50%;"><?php $Data[Ausbildung?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 colspan="2" rowspan="1">Potential</td>
            <td colspan="2" rowspan="1"><?php $Data[Potential?></td>
          </tr>
          <tr>
            <td style="width: 25%;" colspan="1"
 rowspan="8">Unbekannt</td>
            <td style="font-weight: bold; width: 25%;"
 colspan="1" rowspan="4">Unbekannt</td>
            <td style="font-weight: bold; width: 25%;"
 colspan="1" rowspan="2">Unbekannt</td>
            <td style="font-weight: bold; width: 25%;">Unbekannt</td>
          </tr>
          <tr>
            <td>Unbekannt</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="2">Unbekannt</td>
            <td style="font-weight: bold;">Unbekannt</td>
          </tr>
          <tr>
            <td>Unbekannt</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="4">Unbekannt</td>
            <td style="font-weight: bold;" colspan="1"
 rowspan="2">Unbekannt</td>
            <td style="font-weight: bold;">Unbekannt</td>
          </tr>
          <tr>
            <td>Unbekannt</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="2">Unbekannt</td>
            <td style="font-weight: bold;">Unbekannt</td>
          </tr>
          <tr>
            <td>Unbekannt</td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="background-color: rgb(161, 187, 91); font-weight: bold;">Nachkommen</td>
            <td colspan="2" rowspan="1"><?php $Data[Nachkommen?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="background-color: rgb(161, 187, 91); font-weight: bold;">Zuchtzulassung</td>
            <td colspan="2" rowspan="1"><?php $Data[Zuchtzulassung?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="background-color: rgb(161, 187, 91); font-weight: bold;">Erfolge</td>
            <td colspan="2" rowspan="1"><?php $Data[Erfolge?></td>
          </tr>
          <tr>
            <td colspan="4" rowspan="1">Copyright
des Fotos liegt bei cll von <a href="http://www.photofans.de"
 target="_blank">photofans.de</a></td>;
<?php
}

?>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>
</body>
</html> 


Da war noch ein echo zwischen, was da nich hingehörte, aber daran kanns nich liegen.
Bist du dir sicher, dass die Zellen in MySQL genauso heißen wie die in du es angegeben hast, also dass die auch alle groß geschrieben werden etc.?
kirou
Ja, auf jeden Fall verwirrt
Das ist wirklich seltsam unglücklich

edit:
so sieht der momentane code aus, egal was ich versuche, er zeigt die daten einfach nicht an *verzweifel*

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:
<html><head>
  <title>Steckbrief</title>
<link rel=stylesheet href=style.css type=text/css>
</head>
<body style="background-color: transparent; color: rgb(0, 0, 0);"
 alink="#ee0000" link="#0000ee" vlink="#551a8b">
<?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 );
 ?>
<table
 style="background-color: transparent; width: 97%; text-align: left; margin-left: auto; margin-right: auto;"
 cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td>
      <table
 style="background-color: transparent; width: 100%; text-align: left; margin-left: auto; margin-right: auto;"
 border="1" cellpadding="2" cellspacing="4">
        <tbody>
          <tr style="font-weight: bold;">
            <td style="background-color: rgb(161, 187, 91);"
 colspan="4" rowspan="1"><?php $Data[id?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="7"><?php $Data[Foto?><br>
            </td>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Name</td>
            <td class="tableb"><?php $Data[Name?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Geburtsjahr</td>
            <td class="tableb"><?php $Data[Geburtsjahr?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Geschlecht</td>
            <td class="tableb"><?php $Data[Geschlecht?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Rasse</td>
            <td class="tableb"><?php $Data[Rasse?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Z&uuml;chter</td>
            <td class="tableb"><?php $Data[Zuechter?></td>
          </tr>
          <tr>
            <td
 style="font-weight: bold; background-color: rgb(161, 187, 91);"
 class="tablea">Vorbesitzer</td>
            <td class="tableb"><?php $Data[Vorbesitzer?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 class="tablea">Besitzer</td>
            <td class="tableb"><?php $Data[Besitzer?></td>
          </tr>
          <tr style="font-weight: bold;">
            <td style="background-color: rgb(161, 187, 91);"
 colspan="4" rowspan="1">Charakter</td>
          </tr>
          <tr>
            <td colspan="4" rowspan="1"><?php $Data[Charakter?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="width: 50%; background-color: rgb(161, 187, 91); font-weight: bold;">Ausbildung</td>
            <td colspan="2" rowspan="1"
 style="width: 50%;"><?php $Data[Ausbildung?></td>
          </tr>
          <tr>
            <td
 style="background-color: rgb(161, 187, 91); font-weight: bold;"
 colspan="2" rowspan="1">Potential</td>
            <td colspan="2" rowspan="1"><?php $Data[Potential?></td>
          </tr>
          <tr>
            <td style="width: 25%;" colspan="1"
 rowspan="8"><?php $Data[Name?></td>
            <td style="font-weight: bold; width: 25%;"
 colspan="1" rowspan="4"><?php $Data[Vater?></td>
            <td style="font-weight: bold; width: 25%;"
 colspan="1" rowspan="2"><?php $Data[VaterVater?></td>
            <td style="font-weight: bold; width: 25%;"><?php $Data[VaterVaterVater?></td>
          </tr>
          <tr>
            <td><?php $Data[VaterVaterMutter?></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="2"><?php $Data[VaterMutter?></td>
            <?php $Data[VaterMutterVater?>
<td style="font-weight: bold;"></td>
          </tr>
          <tr>
            <td><?php $Data[VaterMutterMutter?></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="4"><?php $Data[Mutter?></td>
            <td style="font-weight: bold;" colspan="1"
 rowspan="2"><?php $Data[MutterVater?></td>
            <td style="font-weight: bold;"><?php $Data[MutterVaterVater?></td>
          </tr>
          <tr>
            <td><?php $Data[MutterVaterMutter?></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="2"><?php $Data[MutterMutter?></td>
            <td style="font-weight: bold;"><?php $Data[MutterMutterVater?></td>
          </tr>
          <tr>
            <td><?php $Data[MutterMutterMutter?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="background-color: rgb(161, 187, 91); font-weight: bold;">Nachkommen</td>
            <td colspan="2" rowspan="1"><?php $Data[Nachkommen?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="background-color: rgb(161, 187, 91); font-weight: bold;">Zuchtzulassung</td>
            <td colspan="2" rowspan="1"><?php $Data[Zuchtzulassung?></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="1"
 style="background-color: rgb(161, 187, 91); font-weight: bold;">Erfolge</td>
            <td colspan="2" rowspan="1"><?php $Data[Erfolge?></td>
          </tr>
          <tr>
            <td colspan="4" rowspan="1">Copyright
des Fotos liegt bei <?php $Data[Copyright?></td>
<?php
}

?>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>
</body>
</html>
sina91
Tut mir Leid, ich hab auch einen Fehler gemacht.
Du musst vor dir ganzen $Data Sachen jedenfalls ein echo " setzen und danach das echo natürlich wieder durch " beenden.
Zum Beispiel so:
<?php echo "$Data[Name]" ?>

Tut mir Leid, das hab ich irgendwie vergessen^^
So ist das natürlich klar, dass er nichts ausgibt^^
Kuhmuhphu
Geht das auch mit PopUps? ich würde meine Steckies gerne auf PHP umstellen und joa das interessiert mich.. sonst muss ich meine Steckies nochmal umcoden^^
sina91
Ich habs selbst zwar noch nicht mit PopUps gemacht, wüsste aber nicht, warum das nicht gehen sollte.
Theoretisch müsste es ja in etwa so klappen;
code:
1:
2:
3:
4:
5:
6:
7:
8:
 
  <script LANGUAGE="JavaScript">
     function FUNKTION() { 
     fenster = window.open("steckbrief.php?id=$id",
     "PopUp","width= Xpx ,height= Xpx ,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=no,location=no,hotkeys=no")}</script>
    <a href="JavaScript:FUNKTION()" > LINKNAME </a>



Aber wie gesagt, ganz sicher bin ich mir nicht, irgendwie braucht das PopUp glaube ich noch eine Adressleiste, aber das sollte ja machbar sein^^
Kuhmuhphu
Ich versuch es einfach mal großes Grinsen
wenn nicht geht dann schrei ich einfach um hilfe^^
kirou
Es klappt bei mir jetzt alles, vielen vielen Dank für deine Mühe, Sina großes Grinsen
Paty
wenn ich die tabelle erstellen will komm ein fenster wo steht: Das ist keine Zahl!
Nanni
Hast du bei der Länge überall eine Zahl eingegeben? Es sei denn das Feld ist ein TEXT-, ENUM- oder SET-Feld, dann müsste er aber auch keine Zahl verlangen. Bei allen anderen Typen wie Varchar oder INT, ist es jedoch nötig, dass du die Länge angibst - in einer Zahl.
kimni
Ich hätt auch mal eine Frage smile
Undzwaar. bräuchte ich dafür , also um das zu 'erstellen' , den HTML-Code meines Steckbriefes ?
Konnte ich jetzt i.wie nicht herauslesen Augenzwinkern
sina91
Naja, wenn du möchtest, dass der Steckbrief genauso aussieht wie dein jetziger, die Ausgaben nur über die Datenbank stattfinden und du nicht jede Seite einzeln erstellen musst, dann ja Augenzwinkern
Wenn du z.B. eine Tabelle hast, die momentan ganz einfach gesagt so aussieht;

code:
1:
2:
3:
4:
5:
6:
7:
8:
<table>
<tr>
<td width="50%">Name</td>
<td width="50%">Testpferd</td>
</tr>
</table>


dann muss das ganze danach so aussehen Augenzwinkern

php:
1:
2:
3:
4:
5:
6:
<table>
<tr>
<td width="50%">Name</td>
<td width="50%"><?php echo "$Testpferd";?></td>
</tr>
</table>


Oder jedenfalls so in etwa^^ Augenzwinkern

Dafür brauchst du also den HTML Code deiner Seite, damit das Ganze noch genauso aussieht Augenzwinkern