PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
ScottCFR
Forum Commoner
Posts: 33 Joined: Sat Jun 19, 2010 7:36 pm
Post
by ScottCFR » Tue Sep 14, 2010 8:15 pm
I'm not sure how to do this, but I'm sure I'm not doing it right.
I want it so when I click "Delete" it goes to delete.php with that number. As in: delete.php?=12
Code: Select all
<td height=30 align='left'>";echo $myrow['title']; echo" echo "<a href='delete.php?=$myrow['ID'];'<br />Delete</a>";</td>
Thanks,
Scott
josh
DevNet Master
Posts: 4872 Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida
Post
by josh » Tue Sep 14, 2010 8:19 pm
; echo" echo "
?? This part is invalid. I don't get what you want us to tell you though?
ScottCFR
Forum Commoner
Posts: 33 Joined: Sat Jun 19, 2010 7:36 pm
Post
by ScottCFR » Tue Sep 14, 2010 8:25 pm
Well, that is what I said. Could you help me?
josh
DevNet Master
Posts: 4872 Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida
Post
by josh » Tue Sep 14, 2010 10:37 pm
PradeepKr
Forum Newbie
Posts: 14 Joined: Wed Aug 11, 2010 8:29 am
Post
by PradeepKr » Wed Sep 15, 2010 12:51 am
Replace that line with this
Code: Select all
<td height=30 align='left'>
echo $myrow['title'];
echo '<a href="delete.php?='.$myrow['ID'].' ">Delete</a>';
</td>