How to reduce this code?
<p>Is there any way to shorten this code:</p>

<pre><code>$resultCategoryName = mysql_query("SELECT ecname FROM electioncategorymaster WHERE ecid=".$Category);
$rowCategoryName = mysql_fetch_row($resultCategoryName);
$CategoryName = $rowCategoryName[0];
</code></pre>
