$dnum = date(Ymd)*4;
$from = $_GET['fr'];
if($from == ""){
$from = $_POST['fr'];
}
if($from != $dnum){
echo("<<<<Restricted Area>>>>" .
"
Sorry, you must Log In to view this Page
");
exit();
}
$usrn = $_GET['usrn'];
if($usrn == ""){
$usrn = $_POST['usrn'];
}
if($usrn == ""){
echo("<<<<Restricted Area>>>>" .
"
Problem with your username. Please Log In again.
");
exit();
}
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
?>
Eco-$mart Library
Eco-$mart Audio
New File
Current Play List Click Title to listen, [Edit] to Edit Profile, [DEL] to delete from Play List.
|
mysql_select_db('ecosmar_website', $dbcnx);
$listem = @mysql_query("SELECT ID,subject,filename,filesize,date_rec FROM eco_sound ORDER BY subject");
if (!$listem) {
echo("Problem retrieving Audio Play List. Error: ". mysql_error()." |
");
}
$num_rows = mysql_num_rows($listem);
if($num_rows == 0 or $num_rows == ""){
echo("No Audio Files. |
");
}else{
while($row = @mysql_fetch_array($listem)){
$ID = $row['ID'];
$subject = $row['subject'];
$filename = $row['filename'];
$filecheck = explode('.',$filename);
$filetype = $filecheck[1];
$filesize = $row['filesize'];
$date_rec = $row['date_rec'];
$chunk_dt = chunk_split($date_rec, 2, ':');
$chunk_arrt = explode(":", $chunk_dt);
$recorded = $chunk_arrt[2].'/'.$chunk_arrt[3].'/'.$chunk_arrt[0].$chunk_arrt[1];
echo(" Edit DEL | " .
"$subject | " .
"Recording Date: $recorded | " .
"File Info: $filetype - $filesize MB |
");
}
}
?>
©2007 - Data Base Interface - Custom Built at:
|
|