C:\Documents and Settings\Chimera\My Documents\My Music\Misc\Rihanna- SOS (Rescue Me).mp3 4 Rihanna- SOS (Rescue Me).mp3 C:\Documents and Settings\Chimera\My Documents\My Music\Misc\Saving Jane-The girl next door.mp3 5 Saving Jane-The girl next door.mp3 C:\Documents and Settings\Chimera\My Documents\My Music\Misc\Sean Paul - We'll Be Burning .mp3 6 Sean Paul - We'll Be Burning .mp3 C:\Documents and Settings\Chimera\My Documents\My Music\Stuff\Sean Paul-Temperature.mp3 7 Sean Paul-Temperature.mp3 C:\Documents and Settings\Chimera\My Documents\My Music\Stuff\Shakira ft Wyclef Jean- Hips Don't Lie.MP3 i want to put the diffences in the directories into 2 seperate tables what i can't figure out is how to compare the $path names to know which table to put it in. //these are html tables not db tables. table 1 C:\Documents and Settings\Chimera\My Documents\My Music\Misc\Rihanna- SOS (Rescue Me).mp3 4 Rihanna- SOS (Rescue Me).mp3 C:\Documents and Settings\Chimera\My Documents\My Music\Misc\Saving Jane-The girl next door.mp3 5 Saving Jane-The girl next door.mp3 C:\Documents and Settings\Chimera\My Documents\My Music\Misc\Sean Paul - We'll Be Burning .mp3 6 Sean Paul - We'll Be Burning .mp3 table 2 C:\Documents and Settings\Chimera\My Documents\My Music\Stuff\Sean Paul-Temperature.mp3 7 Sean Paul-Temperature.mp3 C:\Documents and Settings\Chimera\My Documents\My Music\Stuff\Shakira ft Wyclef Jean- Hips Don't Lie.MP3 //also it has to be dynamic, because i will not know what the $path is.