> '.$name.' >> '.$statetxt.' >> '.$citytxt.'
'; $cattxt = str_replace('Attorneys Attorneys','Attorneys',$cattxt); //cat name in city link $title = str_replace('Attorneys Attorneys','Attorneys',$title); $theme = str_replace('Attorneys Attorneys','Attorneys',$theme); $metadescription = str_replace('Attorneys Attorneys','Attorneys',$metadescription); $metakeyword = str_replace('Attorneys Attorneys','Attorneys',$metakeyword); include 'header.php'; $useb = ''; if (strlen($theme) > 54) { $useb = '_b'; } ?>



'.$theme.' from the attorney directory by viewing lawyer profiles below.'; } else { $cdescription = ''.$theme.' from the attorney directory that specializes in '.$nametxt.' by viewing lawyer profiles below.'; } } echo $cdescription; ?>

'attorneys') { $cond = "where state = '{$abstate}' and replace(city,' ','-') = '".$city."' and `".$_GET['name'] . "` = 1"; } ### {{{ $query_count = "select count(1) as c from attorneys {$cond};"; $count_result = mysql_query($query_count,$conn) or die(mysql_error()); $AllCount = mysql_fetch_array($count_result,MYSQL_ASSOC); $AllCount = $AllCount['c']; $AllPage = ceil($AllCount/$max); if($page>$AllPage) $page = $AllPage; ### }}} $start = ($page-1)*$max; if ($start <0) $start = 0; $query = "select id,name,firstname,lastname,firm,suffix from attorneys {$cond} limit {$start},{$max}"; $result = mysql_query($query,$conn) or die(mysql_error()); $cnt = 1; while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { $cname = $row{'name'}; $lname = cstr_strip($cname); $firstname = trim(str_replace(' ','',$row{'firstname'})); $lastname = trim(str_replace(' ','',$row{'lastname'})); $suffix = trim(str_replace(' ','',$row{'suffix'})); $firm = $row{'firm'}; if ($firm == 0 and $firstname <> '') {$cname = $firstname . ' ' . $lastname . ' ' . $suffix;} //$lname = str_replace(',',' ',$row{'name'}); //$lname = str_replace(' ',' ',$lname); //$lname = str_replace(' ','-',$lname); $lid = $row{'id'}; if ($cnt % 1 == 0) { print ''; } $url = buildlawyer($city,$state,$lname,$lid ); print ''; if ($cnt % 1 == 0) { print ''; } $cnt = $cnt + 1; } $conn = null; ?>
 '.$cname .'

{$i} "; else echo ' ',$i,' '; if ($i % 20 == 0) {echo '
';} } ?>

Welcome to AP Lawyers, the comprehensive reference of the best lawyers, attorneys and law firms in the US. Find the best Injury Lawyer, Divorce Lawyer, Criminal Lawyer, Accident Lawyer, Mesothelioma Lawyer, Medical Malpractice, Debt Consolidation, Nonprofit and attorneys.