# New to PHP and STUCK!

**URL:** <https://forum.kirupa.com/t/new-to-php-and-stuck/319868>\
**Category:** Uncategorized\
**Created:** [March 7, 2011, 12:31pm UTC](https://forum.kirupa.com/t/new-to-php-and-stuck/319868 "2011-03-07T12:31:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mielle](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Mielle](https://forum.kirupa.com/u/Mielle)\
**Post date:** [March 7, 2011, 12:31pm UTC](https://forum.kirupa.com/t/new-to-php-and-stuck/319868/1 "2011-03-07T12:31:51Z")

</div>

Im using a flash music player that gets it’s playlist from an XML file. Now I want to be able to add and remove songs from this playlist. I’m using a PHP script to do this, which works 100% to remove specified tracks, but as soon as I try to add a track, it remove all previous tracks and only display the newly added track.

Can someone PLEASE look at the code for me and tell me whats wrong with it?
