Ich habe ein ähnliches Problem. Seit PHP5 funktioniert mir dieses script nicht mehr:
kann mir da jemand helfen ?
P.S. es wir bei der Variable id auch nichts mehr übergeben ...
Besten Dank im Voraus
PHP:
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFFF00">
<div align="center"></div>
<div align="center"><font class="texttitel"> Klassenzuteilung 2005 / 2006 </font></div> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="8" cellspacing="0">
<?
$cat_result = mysql_db_query($database, "SELECT * FROM lehrpersonen_cat WHERE cat_id=1 OR cat_id=2 OR cat_id=3 OR cat_id=5 OR cat_id=6" );
while($cat_row = mysql_fetch_array($cat_result)){
$cat_id = $cat_row["cat_id"];
$cat_description = $cat_row["cat_description"];
$pers_result = mysql_db_query($database, "SELECT * FROM lehrpersonen_pers WHERE cat_id = '$cat_id' ORDER BY pers_name");
while($pers_row = mysql_fetch_array($pers_result)){
$pers_id = $pers_row["pers_id"];
$pers_name = $pers_row["pers_name"];
$pers_description = $pers_row["pers_description"];
if($cat_description) echo "<tr><td colspan=\"3\"> </td></tr>";
?>
<tr>
<td width="28%"><strong><?=$cat_description?></strong></td>
<td width="44%"><a href="#" onClick="window.open('personen_details.php?id=<?=$pers_id?>','Personendetails','width=220,height=120,resizable=no,screenX=100,top=270,left=200,screenY=160')"><?=$pers_name?></a></td>
<td width="28%"><div align="left"><?=$pers_description?></div></td>
</tr>
<?
unset($cat_description);
}
}
?>
</table>
</td>
</tr>
</table>
<p> </p>
<p align="center"><strong><a href="pdf/telefonliste.pdf" target="_blank">Link: Telefonliste als PDF</a> <a href="pdf/telefonliste.pdf" target="_blank"><img src="bilder/pdf/pdf.gif" width="30" height="29" border="0"></a></strong></p>
PHP:
<html>
<head>
<title>Details</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel=stylesheet type="text/css" href="var/style.css">
</head>
<body bgcolor="#FFFFFF" background="bilder/hg/tab_hg.jpg" onLoad="setTimeout('window.close()',5000)">
<?
$result = mysql_db_query($database, "SELECT * FROM lehrpersonen_pers WHERE pers_id='$id'");
$row = mysql_fetch_array($result);
$pers_name = $row["pers_name"];
$pers_description = $row["pers_description"];
$pers_address = nl2br($row["pers_address"]);
$pers_phone = $row["pers_phone"];
$pers_email = $row["pers_email"];
$pers_picture = $row["pers_picture"];
?>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b><?=$pers_name; ?></b></td>
<td rowspan="5"><div align="center">
<?
if($pers_picture == ""){
echo " ";
}
else{
$bildpfad = "bilder/persbilder/".$pers_picture;
if(file_exists($bildpfad)){
?>
<?
}
else{
echo "Bild Pfad falsch";
}
}
?>
</div></td>
</tr>
<tr>
<td><?=$pers_description?></td>
</tr>
<tr>
<td><?=$pers_address?></td>
</tr>
<tr>
<td><?=$pers_phone?>
</td>
</tr>
<tr>
<td><a href="mailto:<?=$pers_email?>"><?=$pers_email?></a> </td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<p> </p>
<p><a href="javascript:window.close();"><strong>Fenster schliesst in 5 sec.</strong></a>
</p>
</div></td>
</tr>
</table>
</body>
</html>
kann mir da jemand helfen ?
P.S. es wir bei der Variable id auch nichts mehr übergeben ...
Besten Dank im Voraus
Zuletzt bearbeitet: