Forums

PHP

This topic is locked

Variables disapear when HTML is added outside

Posted 21 Apr 2004 06:39:20
1
has voted
21 Apr 2004 06:39:20 Aron K posted:
I have the line:

<pre id=code><font face=courier size=2 id=code> &lt;td&gt;&lt;?php echo $row_featured['title']; ?&gt;&lt;/td&gt;</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> &lt;td&gt;&lt;a href="asd"&gt;&lt;?php echo $row_featured['title']; ?&gt;&lt;/a&gt;&lt;/td&gt;</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> &lt;td&gt;&lt;/td&gt;</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>
&lt;?php do { ?&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="ad.php?id=&lt;?php echo $row_catRS['ad_id']; ?&gt;"&gt;&lt;?php echo $row_catRS['title']; ?&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;?php echo $row_catRS['class']; ?&gt;&lt;/td&gt;
&lt;td&gt;$&lt;?php echo $row_catRS['price']; ?&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;?php } while ($row_catRS = mysql_fetch_assoc($catRS)); ?&gt;

</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)

Reply to this topic