Christopher: Probleme mit öffnen von 2 Bildern!

Grüß euch! habe ein kleines problem, wenn ich jetzt den unten angefürhten quelltext öffne, werden zwar alle zwei bilder angezeigt aber nur beim öffnen passt einiges nicht! Wenn ich zb. das obere Bild öffne kommt auch das oberste aber wenn ich das untere bild öffnen will, kommt das 1.bild

Bitte um Hilfe

<?
$host = "localhost";
$user = "root";
$password = "XXX";
$dbname = "XXX";
$tabelle = "news";
$dbverbindung = mysql_connect ($host, $user, $password);
$dbanfrage = "SELECT * FROM $tabelle ORDER by monat ";
$result = mysql_db_query ($dbname, $dbanfrage, $dbverbindung);
$id = $_GET['id'] + 1;
while ($ausgabe = mysql_fetch_array ($result))
{
echo ("
<SCRIPT LANGUAGE='JavaScript'><!-- var tipWin = null;
function opentip()
{
        str="bild-open-news-pic1.php?pic=$ausgabe[pic1]";
        tipWin = window.open(str,'tipWin','width=500,height=500,resizeable=no,scrollbars=no');
        window.open(str,'tipWin','width=500,height=500');
        tipWin.opener = self;
}
//-->
</SCRIPT>

<SCRIPT LANGUAGE='JavaScript'><!-- var tipWin = null;
function opentip2()
{
        str="bild-open-news-pic2.php?pic=$ausgabe[pic2]";
        tipWin = window.open(str,'tipWin','width=500,height=500,resizeable=no,scrollbars=no');
        window.open(str,'tipWin','width=500,height=500');
        tipWin.opener = self;
}
//-->
                    </SCRIPT>

<table id='headline' cellSpacing='0' cellPadding='0' width='100%' border='0'>
                      <tr>
 <td>$ausgabe[uberschrift]</td>
 </tr>
 </table>
<table class='text1' cellSpacing='0' cellPadding='3' width='100%' border='0'>
 <tr>
<td class='text2' vAlign='top'>
<table cellSpacing='0' cellPadding='1' width='133' align='left' border='0' hspace='3' vspace='3'>
<tr>
<td class='text1'>");

if($ausgabe['pic1']!="")
{ print "
<tr><td name="2"><p align="left">
<center><a href='javascript:opentip()'><img border='0' src='fotos_news/$ausgabe[pic1]' width='105' height='81'></a></center><br></td></tr></p></p>";}

if($ausgabe['pic2']!="")
{ print "
<tr><td name="2"><p align="left">
<center><a href='javascript:opentip2()'><img border='0' src='fotos_news/$ausgabe[pic2]' width='105' height='81'></a></center><br></td></tr></p></p>";}

echo ("
</a><br>
&nbsp;<center>
<a href='?kat=content&fid=0&sub=1000&kat2=DYN&sid=47'><font color='#a3310b'><center>&nbsp;</center></font></a>
</center></td>
</tr>
</table>
<p><font color='#4b6c44'><b>$ausgabe[art]</b><br>
<i>$ausgabe[tag]. $ausgabe[monat] $ausgabe[jahr]</i></font><br>
<br>
$ausgabe[text]<br>
&nbsp;</td>
</tr>
<tr>
<td class='text2'>
<p align='right'>
[<a href='#'><font color='#a3310b'>Mehr zu diesem Thema lesen..</font></a>]</td>");
}
mysql_close ($dbverbindung)

?>

  1. hi,

    wenn ich jetzt den unten angefürhten quelltext öffne

    du hast ein PHP-script gepostet, willst aber ein clientseitiges problem diskutieren - also poste dann bitte auch den code, der beim client ankommt.

    gruß,
    wahsaga

    --
    "Look, that's why there's rules, understand? So that you _think_ before you break 'em."