I have below code, which gets me file path as voicetube/record/1985150721112615
but I need only 1985150721112615
exploding first two folders,please help me on this
$sql = "SELECT filePath FROM user_recordings ORDER BY recordDate ASC";
$result = mysql_query($sql);
$var = array();
while ($row = mysql_fetch_array($result))
{
$var[] = $row['filePath'];
}