include("header.html"); ?>
Click on a program title to read or on the icon to listen
$hostname = 'localhost'; $username = 'gracemin'; $password = '2tim215'; mysql_connect($hostname, $username, $password); mysql_select_db('graceminute'); $query = "SELECT airDate, textURL, audioURL, Title FROM Programs ORDER BY airDate DESC"; $res = mysql_query($query); while ($row = mysql_fetch_row($res)) { $date = $row[0]; $textURL = $row[1]; $mp3 = $row[2]; $title = $row[3]; $t = fopen($textURL, 'r'); $fulltext = fread($t, 750); fclose($t); $fulltext = strip_tags($fulltext); print "$fulltext"; if (strlen($fulltext) == 750) { print "..."; } print "
\n"; print "