Basename driller
Hej....Hvorfor kan jeg ikke eller hvordan kan jeg bruge basename
??--- echo "<option value=basename($nt[filename])>basename($nt[filename])
<?
include("includes/config.php");
$con = mysql_connect("$db_host","$db_user","$db_passwd");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("$db_name", $con);
$query="SELECT filename FROM recordings";
$result = mysql_query ($query);
echo "<select name=Jpeg value='' onChange='window.location.href=this.value'>Jpeg</option>";
while($nt=mysql_fetch_array($result)){
echo "<option value=basename($nt[filename])>basename($nt[filename])</option>";
}
echo "</select>";
?>