$channel=1; var_dump($channel); //Displays database table 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 ""; echo ""; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $s )) { // Print out the contents of each row into a table echo ""; } echo "
Program Title Program Description Date Start Time Finish Time WidescreenSubtitles
"; 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 "
"; }