S ShH New Member Jun 10, 2012 #1 Is there any way to shorten this code:\[code\]$resultCategoryName = mysql_query("SELECT ecname FROM electioncategorymaster WHERE ecid=".$Category);$rowCategoryName = mysql_fetch_row($resultCategoryName);$CategoryName = $rowCategoryName[0];\[/code\]
Is there any way to shorten this code:\[code\]$resultCategoryName = mysql_query("SELECT ecname FROM electioncategorymaster WHERE ecid=".$Category);$rowCategoryName = mysql_fetch_row($resultCategoryName);$CategoryName = $rowCategoryName[0];\[/code\]