MyRow problems

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

Post Reply
ScottCFR
Forum Commoner
Posts: 33
Joined: Sat Jun 19, 2010 7:36 pm

MyRow problems

Post by ScottCFR »

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

Re: MyRow problems

Post by josh »

; 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

Re: MyRow problems

Post by ScottCFR »

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

Re: MyRow problems

Post by josh »

Try replacing

Code: Select all

; echo" echo "
with

Code: Select all

; echo "
PradeepKr
Forum Newbie
Posts: 14
Joined: Wed Aug 11, 2010 8:29 am

Re: MyRow problems

Post by PradeepKr »

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>
Post Reply