Schlo_50 Posted May 9, 2007 Share Posted May 9, 2007 Can someone revise this please, it is meant to list the items in my flat file, with a 'delete' link at the end of every entry so that when clicked it deletes that row of data. <p class="rotary"> <table width="400" border="0" cellspacing="1" cellpadding="0"> <tr> <td><form name="form1" method="post" action=""> <table width="400" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC"> <tr> <td align="center" bgcolor="#6091C2" class="rotary"> <?php $filename = "data.txt"; $file = file($filename); foreach ($file as $key => $value) { echo "<table border=0 cellpadding=0 cellspacing=1 bgcolor=" . $td[0] . "><tr><td bgcolor=" . $td[3] . ">" . $value . "</td>><td bgcolor=" . $td[3] . " align=center><a href=delete.php?day=$value&month=$alue&event=$value" . $value . ">Delete</a></td></tr></table>"; } ?></td> </tr> </table> </form> <p class="rotary"> </p> </form></center> <p align="center" class="rotary"> </p> </body> </html> Thanks guys! Link to comment https://forums.phpfreaks.com/topic/50619-data/ Share on other sites More sharing options...
MadTechie Posted May 9, 2007 Share Posted May 9, 2007 maybe the freelance section would be a better place! Link to comment https://forums.phpfreaks.com/topic/50619-data/#findComment-248879 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.