Hi again,
OK Maybe I am missing something here......
You appear to have a column in a database that contains;
Placement #1 Edit Delete
Placement #10 Edit Delete
Placement #2
Why not have a table structure something like this
PlacementNumber (INT)
Editable (VARCHAR) enter Y or N
Delete (VARCHAR) enter Y or N
define (NL,"\n"); // makes the page think that .NL is /n for a new line
$query = mysql_query("SELECT * FROM yourtable ORDER BY PlacementNumber DESC ");
print "<table>".NL;
while ($row = mysql_fetch_array($query, MYSQL_NUM))
{
print "<tr>".NL;
print "<td>Placement # " . $row[0] . "</td>".NL;
print "<td>";
if ($row[1] == 'Y')
{
print "<a href='youreditpage.php?number=". $row[0]."'>Edit</a>;
}
else
{
print " ";
}
print "</td>".NL;
print "<td>";
if ($row[2] == 'Y')
{
print "<a href='yourdeletepage.php?number=". $row[0]."'>Delete</a>}
else
{
print " ";
}
print "</td>".NL;
print "</tr>".NL;
}
print "<table>".NL;
I know that my code is always crude, but I hope this is close to what you need.
I'm sure someone else will come up with another way of doing it
Cheers,
Neil.