Note that there are some explanatory texts on larger screens.

plurals
  1. POTrying to Display Table but it's not being displayed
    primarykey
    data
    text
    <p>I am using twitter Bootstrap for UI to display the links in the code in the form of table But it's not actually being displayed in the table. Please find the error.</p> <pre><code>&lt;center&gt; &lt;div class="well well-large"&gt; &lt;table&gt; &lt;?php require "config.php"; require "course_availability_file.php"; //require "database_queries.php"; //require "webcrawler.php"; $course_selected = strtolower( $_POST['coursename1']); $available = course_availability($course_selected); if ( $available == 0){ echo "Invalid course"."&lt;/br&gt;"; } else { // echo "Valid course"."&lt;/br&gt;"; //echo "List of training links for the course ".$course_selected ."&lt;/br&gt;"; function retrieveFromDatabase($course_selected){ require "config.php"; $con = mysql_connect($db_host,$db_user ,$db_pass); if (!$con){ die('Could not connect: ' . mysql_error()); } mysql_select_db($db_name, $con); $sql_retrieve = "SELECT DISTINCT course_link from course where course_name = '".$course_selected."' AND number &lt; 5 ;"; $result = mysql_query( $sql_retrieve); while($row = mysql_fetch_array($result)) { echo '&lt;tr&gt;'; $link = $row['course_link']; echo '&lt;a href="' . $link. '"&gt; ' .$link.' &lt;/a&gt;'."&lt;/br&gt;"; echo '&lt;/tr&gt;'; } $check_num_rows = mysql_num_rows($result); mysql_close($con); return $check_num_rows; } retrieveFromDatabase($course_selected); } ?&gt; &lt;/table&gt;&lt;/div&gt; &lt;/center&gt; </code></pre> <p>I'm trying to find out where the error is. All I want to display my links in a table. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload