in reply to DBI and MySQL

Perhaps this isn't a problem, but it jumped out at me...

No one else mentioned this, but it's possible your extra 'where' keyword is also masking a quoting issue. In the following line:

$sql = "SELECT * FROM dataflex where attorney = '$INPUT{'attorney'}' a +nd where issue = '$INPUT{'issue'}'";

note that the single quotes surrounding $INPUT{'attorney'} and $INPUT{'issue'} conflict with those surrounding the hash keys, 'attorney' and 'issue'. Since hash keys may be bare words, you can circumvent this by removing the single quotes around both 'attorney' and 'issue' (of course getting rid of the extra 'where'):

$sql = "SELECT * FROM dataflex where attorney = '$INPUT{attorney}' and + issue = '$INPUT{issue}'";

dmm

If you GIVE a man a fish you feed him for a day
But,
TEACH him to fish and you feed him for a lifetime