table have problems
<pre><code>&lt;?php

$con = mysql_connect("localhost","root","");

if (!$con)


{

die('Could Not Connect: '. mysql_error());

}
// This block grabs the whole list for viewing

$bilboard_list = "";
$bilboard_list0 = "";
$bilboard_list1 = "";
$bilboard_list2 = "";
$bilboard_list3 = "";
$bilboard_list4 = "";
$bilboard_list5 = "";
$bilboard_list6 = "";
$bilboard_list7 = "";
$bilboard_list8 = "";
$bilboard_list9 = "";
$bilboard_list10 = "";
$bilboard_list11 = "";
$bilboard_list12 = "";

$sql = mysql_query("SELECT * FROM maklumat_peribadi ORDER BY id");

$bilboardCount = mysql_num_rows($sql); // count the output amount

if ($bilboardCount &gt; 0) {
while($row = mysql_fetch_array($sql)){


$id = $row["id"];
$nama_penuh = $row["nama_penuh"];
$no_ic = $row["no_ic"];
$alamat_ttp = $row["alamat_ttp"];
$no_rumah = $row["no_rumah"];
$no_bimbit = $row["no_bimbit"];
$jantina = $row["jantina"];
$tmpt_lhir = $row["tmpt_lhir"];
$email = $row["email"];
$agama = $row["agama"];
$bangsa = $row["bangsa"];
$negara = $row["negara"];
$nama_penjaga = $row["nama_penjaga"];
$nama_ibu = $row["nama_ibu"];



//for show

$bilboard_list .= "$No&lt;br&gt;";
$bilboard_list0 .= "$Nama&lt;br&gt;";
$bilboard_list1 .= "$No Kad Pengenalan&lt;br&gt;";
$bilboard_list2 .= "$Alamat&lt;br&gt;";
$bilboard_list3 .= "$No Telefon Rumah&lt;br&gt;";
$bilboard_list4 .= "$No Telefon Bimbit&lt;br&gt;";
$bilboard_list5 .= "$Jantina&lt;br&gt;";
$bilboard_list6 .= "$Tempat Lahir&lt;br&gt;";
$bilboard_list7 .= "$Email&lt;br&gt;";
$bilboard_list8 .= "$Agama&lt;br&gt;";
$bilboard_list9 .= "$Bangsa&lt;br&gt;";
$bilboard_list10 .= "$Warganegara&lt;br&gt;";
$bilboard_list11.= "$Nama Penjaga/Bapa&lt;br&gt;";
$bilboard_list12 .= "$Nama Ibu&lt;br&gt;";

}
}
 ?&gt;

&lt;html&gt;
&lt;head&gt;
&lt;link rel="stylesheet" href="2col_leftNav.css" type="text/css" /&gt;
&lt;style type="text/css"&gt;
&lt;!--
.style1 {
    font-size: 12px;
    font-weight: bold;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;

 &lt;body&gt;
&lt;div id="masthead"&gt;
  &lt;h1 id="siteName"&gt;Admin Site&lt;/h1&gt;
  &lt;div id="globalNav"&gt; &lt;a href="adminpage.php"&gt; Halaman Utama&lt;/a&gt; |   &lt;a href="test.php"&gt;Maklumat Peribadi Pelajar | &lt;a href="adminpage.php"&gt;Senarai Pelajar Mengikut Kursus  |  &lt;a href="logout.php"&gt;Logout&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;table width="1000px" border="1" align="center"&gt;

      &lt;tr&gt;

        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;NO&lt;strong&gt;&lt;/span&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;NAMA&lt;/strong&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;NO KAD PENGENALAN&lt;/strong&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;ALAMAT&lt;/strong&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;NO TELEFON RUMAH&lt;/strong&gt;&lt;/td&gt;\
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;NO TELEFON BIMBIT&lt;/strong&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;JANTINA&lt;/strong&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;TEMPAT LAHIR&lt;/strong&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;EMAIL&lt;/strong&gt;&lt;/td&gt;\
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;AGAMA&lt;/strong&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;BANGSA&lt;/strong&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;WARGANEGARA&lt;/strong&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;NAMA PENJAGA/BAPA&lt;/strong&gt;&lt;/td&gt;
        &lt;td width="auto"&gt;&lt;span class="style1"&gt;&lt;strong&gt;NAMA IBU&lt;/strong&gt;&lt;/td&gt;



      &lt;/tr&gt;

      &lt;tr&gt;

        &lt;td&gt;&lt;?php echo $bilboard_list; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list0; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list1; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list2; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list3 ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list4; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list5; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list6; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list7; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list8; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list9; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list10; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list11; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $bilboard_list12; ?&gt;&lt;/td&gt;



      &lt;/tr&gt;

&lt;/table&gt;

&lt;body&gt;

&lt;/html&gt;
`
</code></pre>

<p>I have this code with me. 
But whenever I try to run this code it will show this:</p>

<blockquote>
  <p>Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:\xampp\htdocs\ftn_eg\table.php on line 32</p>
</blockquote>

<p>Can anybody can help me?</p>
