Why does this returns results...
And this does not...
<?php
$database = JFactory::getDBO();
$ID = $_GET['ID']; // get var from URL
$query = "SELECT * from bridge_AgProduction2010 WHERE ID = $ID";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$County = $row['County'];
And this does not...
<?php
$database = JFactory::getDBO();
$Cty = $_GET['County']; // get var from URL
$query = "SELECT * from bridge_AgProduction2010 WHERE County = '$Cty'";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$County = $row['County'];