Jump to content

data


Schlo_50

Recommended Posts

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

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.