Forums

PHP

This topic is locked

Can anyone find the error in this code snippet?

Posted 15 Nov 2003 00:12:19
1
has voted
15 Nov 2003 00:12:19 Carol Andrejak posted:
I'm gettting a parse error with this piece of code in the area of the a href. It's looking for either - '," - or -';" but I don't see where it would go. I'm just learning PHP in case you're wondering why I can't see something that's probably very obvious. This is my first time posting code so if it doesn't show up it's because I screwed up and I'll try again. Thanks for your help.

<pre id=code><font face=courier size=2 id=code>
&lt;?php do { ?&gt;
&lt;tr&gt;
&lt;td&gt;&lt;?php echo $row_rsGetJokes['JokeText']; ?&gt;&lt;/td&gt;
&lt;td&gt;&lt;?php echo $row_rsGetJokes['JokeDate']; ?&gt;&lt;/td&gt;
&lt;td&gt;&lt;font size="2" face="Verdana, Arial, Helvetica, sans-serif"&gt;&lt;a href="deletejoke.php?recordID=&lt;?php echo $row_ rsGetJokes['ID']; ?&gt;"&gt;Delete this joke&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;?php } while ($row_rsGetJokes = mysql_fetch_assoc($rsGetJokes)); ?&gt;
</font id=code></pre id=code>

I may look like I'm doing nothing but at the cellular level I'm really quite busy.

Replies

Replied 19 Nov 2003 03:34:33
19 Nov 2003 03:34:33 Robert Kruse replied:
Hello,
In &lt;a href="deletejoke.php?recordID=&lt;?php echo $row_ rsGetJokes['ID']; ?&gt;"&gt;Delete this joke&lt;/a&gt;

$row_ rsGetJokes['ID'] has an extra space between the "_" and the "rsGet..."

Could be the problem

Reply to this topic