How to transfer a specific data through get method
Posted: Fri Feb 09, 2007 6:50 am
feyd | Please use
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi all:
I have a simple table with 4 fields and showing them in a webpage as report. Now with that list I want to show a delete link with each row and when user clicks on that delete link then that particular row will be deleted.
I have a unique field named [b]id[/b] in my table. Now how to send the value of [b]id[/b] to the delete page so that it that particular row can be deleted.
Below is a part of the code for just showing the result but how to pass a value through link?Code: Select all
while($row=mysql_fetch_row($result))
{
echo "<tr>";
if( date($row[4]) == date('Y-m-d') )
{
for ($i=1;$i<$num_fields;$i++)
{
echo '<td bgcolor="#CCCCCC"><b>';
echo $row[$i];
echo '</b></td>';
}
echo '</tr>';
}
else
{
for($i=1;$i<$num_fields;$i++)
{
echo '<td>';
echo $row[$i];
echo '</td>';
}
echo '</tr>';
}
}
?>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]