Jump to content

Delete records using php


coder500

Recommended Posts

I am displaying the contents of a table. The contents are displayed in a for loop. On each row, I put 2 buttons also--- Update and Delete.

I am not getting an idea how we can select the record if I press delete button near a record.

for( $i = 0; $i < $row = mysql_fetch_array($result); $i++)
{
	echo "<tr><td>";
	echo $row['keyword'];
	echo "</td>";
	echo "<td>";
	echo $row['app_date'];
	echo "</td>";
	echo "<td>";
	echo $row['phno'];
	echo "</td><td>";
<form id="form1" name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
</td><td><input type="submit" name="delete" value="Delete" /></td></tr>

Any help please?

 

Link to comment
https://forums.phpfreaks.com/topic/118445-delete-records-using-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.