query running but not displaying anything
<p>i have following code in my program. i don't add database connection and $cat_id those are all good.</p>

<pre><code>&lt;?php
$subCategoryResult = mysql_query("SELECT * FROM sub_category WHERE cat_id='".$cat_id."' ORDER BY id");
?&gt;
&lt;div class='col-lg-12'&gt;
            &lt;?php
                while($subCategoryRow = mysql_fetch_assoc($subCategoryResult)){
                    echo "&lt;h3 class='cd-box cd-header'&gt;asd".$SubCategoryRow[2]."&lt;/h3&gt;";
                }
            ?&gt;  
            &lt;/div&gt;
</code></pre>

<p>now, this query display 7 h3 tags if 7 records in database but not displaying any thing for <strong>$SubCategoryRow[2]</strong>. it's displaying blank...any help?</p>