function displaytable() { // Get all the data from the program table $q = "select * from `program` where channel_id = '$channel'"; $s = mysql_query( $q ) or die( var_dump($q) ); //Creates the table echo "
| Program Title | Program Description | Date | Start Time | Finish Time | Widescreen | Subtitles |
|---|---|---|---|---|---|---|
| "; echo $row['program_title']; echo " | "; echo $row['program_description']; echo " | "; echo $row['date']; echo " | "; echo $row['start_time']; echo " | "; echo $row['finish_time']; echo " | "; echo $row['widescreen']; echo " | "; echo $row['subtitles']; echo " |