Forums
This topic is locked
Variables disapear when HTML is added outside
21 Apr 2004 06:39:20 Aron K posted:
I have the line:<pre id=code><font face=courier size=2 id=code> <td><?php echo $row_featured['title']; ?></td></font id=code></pre id=code>
For some reason if I add a link from it, like below:
<pre id=code><font face=courier size=2 id=code> <td><a href="asd"><?php echo $row_featured['title']; ?></a></td></font id=code></pre id=code>
The text will no longet appear, in the source you see just <pre id=code><font face=courier size=2 id=code> <td></td></font id=code></pre id=code>
I tried it with another column called class and I did not have a problem.
However, I tried linking another column called ISBN and I had the same problem.
Page:
uswebpro.tempwebpage.com/cat.php?cat_id=26&s=jwu&name=Computer
What should I do?
Thanks<img src=../images/dmxzone/forum/icon_smile_sleepy.gif border=0 align=middle>
-- Aron Kansal
1.401.368.3800 (Voice)
1.801.217.1704 (fax)
Replies
Replied 21 Apr 2004 06:47:56
21 Apr 2004 06:47:56 Aron K replied:
Ok, now it the top works, but the bottom is not
<pre id=code><font face=courier size=2 id=code>
<?php do { ?>
<tr>
<td><a href="ad.php?id=<?php echo $row_catRS['ad_id']; ?>"><?php echo $row_catRS['title']; ?></a></td>
<td><?php echo $row_catRS['class']; ?></td>
<td>$<?php echo $row_catRS['price']; ?></td>
</tr>
<?php } while ($row_catRS = mysql_fetch_assoc($catRS)); ?>
</font id=code></pre id=code>
Now the catRS['title'] is not showing.
any tips?
-- Aron Kansal
1.401.368.3800 (Voice)
1.801.217.1704 (fax)
<pre id=code><font face=courier size=2 id=code>
<?php do { ?>
<tr>
<td><a href="ad.php?id=<?php echo $row_catRS['ad_id']; ?>"><?php echo $row_catRS['title']; ?></a></td>
<td><?php echo $row_catRS['class']; ?></td>
<td>$<?php echo $row_catRS['price']; ?></td>
</tr>
<?php } while ($row_catRS = mysql_fetch_assoc($catRS)); ?>
</font id=code></pre id=code>
Now the catRS['title'] is not showing.
any tips?
-- Aron Kansal
1.401.368.3800 (Voice)
1.801.217.1704 (fax)