[eluser]theprodigy[/eluser]
Quote:<select name="change_status">
<option value="live_<?=$row->id?>"<?if($row->status == 'live') echo " selected='selected'"; ?>>Aktuell</option>
<option value="standby_<?=$row->id?>"<?if($row->status == 'standby') echo " selected='selected'"; ?>>Standby</option>
<option value="sold_<?=$row->id?>"<?if($row->status == 'sold') echo " selected='selected'"; ?>>Verkauft</option>
<option value="failed_<?=$row->id?>"<?if($row->status == 'failed') echo " selected='selected'"; ?>>Erfolglos</option>
</select>
Select boxes get sent in the post array via their name attribute. If you have 5 entries, it looks like every single one of your selects will have the same name. You may need to do the same thing to your select name as you are for the options
Code:
<select name="change_status_<?=$row->id?>">
That way, each select has it's own name, instead of all of them having the same name. Also, with doing this, you don't need to change the values of the options.
Try
Code:
<select name="change_status_<?=$row->id?>">
<option value="live"<?if($row->status == 'live') echo " selected='selected'"; ?>>Aktuell</option>
<option value="standby"<?if($row->status == 'standby') echo " selected='selected'"; ?>>Standby</option>
<option value="sold"<?if($row->status == 'sold') echo " selected='selected'"; ?>>Verkauft</option>
<option value="failed"<?if($row->status == 'failed') echo " selected='selected'"; ?>>Erfolglos</option>
</select>
So, change_status_1 could have live as it's value, change_status_2 could have sold, etc