Jump to content

delete row from same page


teknojunkey

Recommended Posts

Hi

I want to delete a row from a database without redirecting to a delete page, can i call a function from a link? or idealy have a javascript confirmation.

 

echo "<tr>

<td>$id</td>

<td>$name</td>

<td><a href=delete.php?id=$id >Delete</a> </td>

</tr>";

//repeat

$i++;

}

 

thanks

well you either have to redirect to the same page or the other page, if you dont want redirection use ajax.

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.