Interesting phenomenon
From: Oliver (oliver_summa_at_web.de)
Date: 02/25/05
- Next message: Stephan Schulze: "Re: Interesting phenomenon"
- Previous message: Marcos: "Re: List files of folder"
- Next in thread: Stephan Schulze: "Re: Interesting phenomenon"
- Reply: Stephan Schulze: "Re: Interesting phenomenon"
- Reply: Steve Pugh: "Re: Interesting phenomenon"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 25 Feb 2005 19:55:29 +0100
Hello,
i'm having a problem with an html table and the use off css and can't
figure out, why this problem occurs. The following happens. I create a
table and some content via php and mysql and then always the third
element doesn't show the hyper-linking, though it is written in the
source code.
If i save the code and load it as html the linking is working.
What is so strange is, that it's always the third element.
Anybody an idea?
my php code is like this:
[code]
if($row['cont_type']=="2") {
//Feld-ELEMENT
$x=$row['cont_id'];
$sql="SELECT * FROM `type_c` WHERE `cont_id`='$x'";
$result_b=mysql_query($sql,$db) or die ("Nicht
erlaubte Operation: $sql");
$row_b = mysql_fetch_array($result_b);
if($row_b['link']!="0") {
echo "<a
href=\"./tpfrm.php?site_id=".$row_b['link']."\" target=\"_top\">";
}
if($row['frame']=="2") {
echo "<div class=\"frame2\"
style=\"border-color:".$col."\">";
} else {
echo "<div class=\"noframe\">";
}
echo "<table width=\"100%\" cellpadding=\"0\"
cellspacing=\"0\" border=\"0\">
<tr valign=\"top\">
<td align=\"left\" width=\"100\">
<img
src=\"./images/produkte/".$row_b['image']."\" border=\"0\" class=\"images\">
</td>
<td align=\"center\"
valign=\"middle\" class=\"td_b_left\" style=\"border-color:".$col."\"
width=\"150\">
<p
class=\"fl_text\">".$row_b['topic']."</p>
</td>
<td align=\"center\"
valign=\"middle\" class=\"td_b_left\" style=\"border-color:".$col."\">
<p
class=\"fl_text\">".$row_b['text']."</p>
</td>
</tr>
</table>";
echo "</div>";
if($row_b['link']!="0") {
echo "</a>";
}
}
[/code]
And the resulting html code is this:
http://www.familie-summa.com/test/test2.htm
That the images aren't there, doesn't matter. I also tried it with the
images and it's the same.
thx olli
- Next message: Stephan Schulze: "Re: Interesting phenomenon"
- Previous message: Marcos: "Re: List files of folder"
- Next in thread: Stephan Schulze: "Re: Interesting phenomenon"
- Reply: Stephan Schulze: "Re: Interesting phenomenon"
- Reply: Steve Pugh: "Re: Interesting phenomenon"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|