Hi , also mein problem ist das meine bilddatei nicht angezeigt wird .
PHP
<?php
mysql_connect("localhost",
"name","pw")or die
("Keine Verbindung moeglich");
mysql_select_db("db")or die
("Die Datenbank existiert nicht");
?>
<table border="1" align=center >
<tr>
<th>Datum </th>
<th>Heim</th>
<th>Wappen</th>
<th>Gast</th>
<th>Wappen</th>
<th>Jackpot</th>
<th>Winner</th>
<th>Endstand</th>
</tr>
<tr>
<td>
<?php $abfrage = "SELECT datum FROM nba WHERE id='1'";
$ergebnis = mysql_query($abfrage);
while($datum = mysql_fetch_object($ergebnis))
{
echo $datum->datum;
} ?></td>
<td><?php $abfrag = "SELECT heim FROM nba WHERE id='1'";
$ergebni = mysql_query($abfrag);
while($heim = mysql_fetch_object($ergebni))
{
echo $heim->heim;
}
?></td>
<td><?php $ads = "SELECT wappen FROM nba WHERE id='1'";
$es = mysql_query($ads);
while($wappen = mysql_fetch_object($es))
{
if($wappen == "Nuggets1"){
System.out.print("<img src=\"nba\9.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Hawks1"){
System.out.print("<img src=\"nba\15.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Wizards1"){
System.out.print("<img src=\"nba\3.gif\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Knicks1"){
System.out.print("<img src=\"nba\29.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Cavaliers1"){
System.out.print("<img src=\"nba\2.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Grizzlies1"){
System.out.print("<img src=\"nba\28.gif\" alt=\"Sc Heckenweg\" />");}
if($wappen == "m76ers1"){
System.out.print("<img src=\"nba\23.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Rockets1"){
System.out.print("<img src=\"nba\16.gif\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Bulls1"){
System.out.print("<img src=\"nba\8.gif\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Magic1"){
System.out.print("<img src=\"nba\1.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Raptors1"){
System.out.print("<img src=\"nba\20.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Pistons1"){
System.out.print("<img src=\"nba\10.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Warriors1"){
System.out.print("<img src=\"nba\14.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Timberwolves1"){
System.out.print("<img src=\"nba\21.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Suns1"){
System.out.print("<img src=\"nba\26.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Clippers1"){
System.out.print("<img src=\"nba\18.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Kings1"){
System.out.print("<img src=\"nba\11.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Bobcats1"){
System.out.print("<img src=\"nba\13.gif\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Celtics1"){
System.out.print("<img src=\"nba\5.gif\" alt=\"Sc Heckenweg\" />");}
if($wappen == "TrailBlazers1"){
System.out.print("<img src=\"nba\30.gif\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Heat1"){
System.out.print("<img src=\"nba\6.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Pacers1"){
System.out.print("<img src=\"nba\4.gif\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Bucks1"){
System.out.print("<img src=\"nba\7.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Hornets1"){
System.out.print("<img src=\"nba\25.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Supersonics1"){
System.out.print("<img src=\"nba\24.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Jazz1"){
System.out.print("<img src=\"nba\17.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Lakers1"){
System.out.print("<img src=\"nba\19.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Spurs1"){
System.out.print("<img src=\"nba\22.jpg\" alt=\"Sc Heckenweg\" />");}
if($wappen == "Nets1"){
System.out.print("<img src=\"nba\27.gif\" alt=\"Sc Heckenweg\" />");}
if($wappen == "m"){
System.out.print("<img src=\"hj_03.png\" alt=\"Sc Heckenweg\" />");}
}
?></td>
<td><?php $abfra = "SELECT gast FROM nba WHERE id='1'";
$ergebn = mysql_query($abfra);
while($gast = mysql_fetch_object($ergebn))
{
echo $gast->gast;
} ?></td>
<td><?php $af = "SELECT wappen2 FROM nba WHERE id='1'";
$ef = mysql_query($af);
while($wappen2 = mysql_fetch_object($ef))
{
if($wappen2 == Nuggets1){
System.out.print("<img src=\"nba\9.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Hawks1){
System.out.print("<img src=\"nba\15.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Wizards1){
System.out.print("<img src=\"nba\3.gif\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Knicks1){
System.out.print("<img src=\"nba\29.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Cavaliers1){
System.out.print("<img src=\"nba\2.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Grizzlies1){
System.out.print("<img src=\"nba\28.gif\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == m76ers1){
System.out.print("<img src=\"nba\23.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Rockets1){
System.out.print("<img src=\"nba\16.gif\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Bulls1){
System.out.print("<img src=\"nba\8.gif\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Magic1){
System.out.print("<img src=\"nba\1.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Raptors1){
System.out.print("<img src=\"nba\20.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Pistons1){
System.out.print("<img src=\"nba\10.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Warriors1){
System.out.print("<img src=\"nba\14.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == "Timberwolves1"){
System.out.print("<img src=\"nba\21.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Suns1){
System.out.print("<img src=\"nba\26.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Clippers1){
System.out.print("<img src=\"nba\18.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Kings1){
System.out.print("<img src=\"nba\11.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Bobcats1){
System.out.print("<img src=\"nba\13.gif\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Celtics1){
System.out.print("<img src=\"nba\5.gif\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == TrailBlazers1){
System.out.print("<img src=\"nba\30.gif\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Heat1){
System.out.print("<img src=\"nba\6.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Pacers1){
System.out.print("<img src=\"nba\4.gif\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Bucks1){
System.out.print("<img src=\"nba\7.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Hornets1){
System.out.print("<img src=\"nba\25.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Supersonics1){
System.out.print("<img src=\"nba\24.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Jazz1){
System.out.print("<img src=\"nba\17.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Lakers1){
System.out.print("<img src=\"nba\19.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Spurs1){
System.out.print("<img src=\"nba\22.jpg\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Nets1){
System.out.print("<img src=\"nba\27.gif\" alt=\"Sc Heckenweg\" />");};
if($wappen2 == Mavericks1){
System.out.print("<img src=\"nba\12.gif\" alt=\"Sc Heckenweg\" />");};
}
?></td>
<td><?php $abfr = "SELECT jackpot FROM nba WHERE id='1'";
$ergeb = mysql_query($abfr);
while($jackpot = mysql_fetch_object($ergeb))
{
echo $jackpot->jackpot;
} ?></td>
<td><?php $abf = "SELECT winner FROM nba WHERE id='1'";
$erge = mysql_query($abf);
while($winner = mysql_fetch_object($erge))
{
echo $winner->winner;
} ?></td>
<td><?php $ab = "SELECT endstand FROM nba WHERE id='1'";
$erg = mysql_query($ab);
while($endstand = mysql_fetch_object($erg))
{
echo $endstand->endstand;
} ?></td>
</tr>
<td>
Alles anzeigen
ich weiss nicht sehr sauber geschrieben , aber ich fang ja auch erst an mich mit php zu beschaftigen .