Forums
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>
<?php do { ?>
<tr>
<td><?php echo $row_rsGetJokes['JokeText']; ?></td>
<td><?php echo $row_rsGetJokes['JokeDate']; ?></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="deletejoke.php?recordID=<?php echo $row_ rsGetJokes['ID']; ?>">Delete this joke</a></font></td>
</tr>
<?php } while ($row_rsGetJokes = mysql_fetch_assoc($rsGetJokes)); ?>
</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 <a href="deletejoke.php?recordID=<?php echo $row_ rsGetJokes['ID']; ?>">Delete this joke</a>
$row_ rsGetJokes['ID'] has an extra space between the "_" and the "rsGet..."
Could be the problem
In <a href="deletejoke.php?recordID=<?php echo $row_ rsGetJokes['ID']; ?>">Delete this joke</a>
$row_ rsGetJokes['ID'] has an extra space between the "_" and the "rsGet..."
Could be the problem