if ($advanced == "yes") {
if ($title) $sqlcrap.= " Title LIKE '%$title%' AND";
if ($first) $sqlcrap.= " First LIKE '%$first%' AND";
if ($middle) $sqlcrap.= " Middle LIKE '%$middle%' AND";
if ($last) $sqlcrap.= " Last LIKE '%$last%' AND";
if ($position) $sqlcrap.= " Position LIKE '%$position%' AND";
if ($company) $sqlcrap.= " Firm LIKE '%$company%' AND";
if ($address) $sqlcrap.= " Address LIKE '%$address%' AND";
if ($city) $sqlcrap.= " City LIKE '%$city%' AND";
if ($state) $sqlcrap.= " ST LIKE '%$state%' AND";
if ($zip) $sqlcrap.= " Zip LIKE '%$zip%' AND";
if ($phone800) $sqlcrap.= " phone800 LIKE '%$phone800%' AND";
if ($phone) $sqlcrap.= " Phone LIKE '%$phone%' AND";
if ($fax) $sqlcrap.= " Fax LIKE '%$fax%' AND";
if ($email) $sqlcrap.= " Email LIKE '%$email%' AND";
if ($url) $sqlcrap.= " URL LIKE '%$url%' AND";
if ($comments) $sqlcrap.= " Comments LIKE '%$comments%' AND";
if ($notes) $sqlcrap.= " notes LIKE '%$notes%' AND";
if ($postdate) $sqlcrap.= " PostDate LIKE '%$postdate%' AND";
if ($subjects) $sqlcrap.= " subjects LIKE '%$subjects%' AND";
if ($places) $sqlcrap.= " places LIKE '%$places%' AND";
if ($passcode) $sqlcrap.= " Passcode LIKE '%$passcode%' AND";
if ($rank) $sqlcrap.= " Rank LIKE '%$rank%' AND";
$sqlcrap = substr($sqlcrap, 0, -4);
$sql1 = "SELECT * FROM $table_name1 WHERE $sqlcrap";
} else {
$sql1 = "SELECT * FROM $table_name1 WHERE $field LIKE '%$find%'";
}
$result1 = mysql_query($sql1,$db);
$searchtotal = mysql_num_rows($result1);
if (!$start) {
$startnumber = 0;
$start = 1;
} else {
$startnumber = ($start * 50) - 50;
}
$nextstart = $start + 1;
$prevstart = $start - 1;
$number1 = $startnumber + 1;
$number2 = $startnumber + 50;
if ($number2 > $searchtotal) $number2 = $searchtotal;
if ($advanced == "yes") {
$sql5 = "SELECT * FROM $table_name1 WHERE $sqlcrap ORDER by id DESC LIMIT $startnumber,50";
} else {
$sql5 = "SELECT * FROM $table_name1 WHERE $field LIKE '%$find%' ORDER by id DESC LIMIT $startnumber,50";
}
?>
} while ($row5 = mysql_fetch_array($result5));
}
?>
if ($number1 > 50) { ?>
} ?>
if ($number2 < $searchtotal) { ?>
} ?>
include getenv('SITE_BASE_PATH')."/app/layout/template_bottom.php";
} elseif (($uriarray[1] == "reporters") && (strstr($uriarray[2], '.asp') == FALSE) && (strlen($uriarray[3]) < 1)) {
// ################################################################################################################################
// ##### REPORTERS SHOW CITIES / COUNTIES FOR A PARTICULAR STATE
$state_full_lower = $uriarray[2];
$sql1 = "SELECT * FROM states1 WHERE (state2='$state_full_lower' OR state3='$state_full_lower') LIMIT 0,1";
$result1 = mysql_query($sql1,$db);
$row1 = mysql_fetch_array($result1);
$state = $row1["state1"];
$statefull = $row1["state2"];
$morelaw_title = $statefull." Court Reporters";
include getenv('SITE_BASE_PATH')."/app/layout/template_top.php";
?>
echo $statefull ?> Court Reporters
$sql1 = "SELECT * FROM cities2 WHERE state1='$state' ORDER by city1";
$result1 = mysql_query($sql1,$db);
if ($row1 = mysql_fetch_array($result1)) {
echo "
} while ($row1 = mysql_fetch_array($result1));
echo "
";
} else {
echo "error!";
}
include getenv('SITE_BASE_PATH')."/app/layout/template_bottom.php";
} elseif ((($uriarray[1] == "reporters") && (strlen($uriarray[3]) > 1)) && (strstr($uriarray[3], '.asp'))) {
// ################################################################################################################################
// ##### REPORTERS SHOW LIST OF REPORTERS FOR A PARTICULAR PARTICULAR COUNTY / CITY
$state_full_lower = $uriarray[2];
$sql1 = "SELECT * FROM states1 WHERE (state2='$state_full_lower' OR state3='$state_full_lower') LIMIT 0,1";
$result1 = mysql_query($sql1,$db);
$row1 = mysql_fetch_array($result1);
$state = $row1["state1"] ?? "";
$statefull = $row1["state2"] ?? ucfirst($state_full_lower);
$citycity = substr($uriarray[3],0,-4);
$sql3 = "SELECT * FROM cities2 WHERE state1='$state' AND city2='$citycity' LIMIT 0,1";
$result3 = mysql_query($sql3,$db);
$row3 = mysql_fetch_array($result3);
$city1 = $row3["city1"] ?? ucfirst($citycity);
$citystate = $city1.", ".$state;
// Debug info - remove this after testing
if (!$row1) {
echo "";
}
if (!$row3) {
echo "";
echo "";
}
$practicename = str_replace("_", "", $uriarray[4]);
$practicename = str_replace(".asp", "", $practicename);
$morelaw_title = $city1." ".$statefull." Court Reporters";
include getenv('SITE_BASE_PATH')."/app/layout/template_top.php";
?>
echo $city1." ".$statefull." Court Reporters" ?>
// Check if cr1 table has any data at all
$test_sql = "SELECT COUNT(*) as total FROM cr1";
$test_result = mysql_query($test_sql, $db);
$test_row = mysql_fetch_array($test_result);
echo "";
$sql1 = "SELECT * FROM cr1 WHERE (City LIKE '$city1' AND ST='$state') AND visible='' AND Rank <12 ORDER by Rank LIMIT 0,20";
$sql2 = "SELECT * FROM cr1 WHERE places LIKE '%$citystate%' AND visible='' AND Rank <12 ORDER by Rank LIMIT 0,20";
$sql3 = "SELECT * FROM cr1 WHERE places LIKE '%national%' AND visible='' AND Rank <12 ORDER by Rank LIMIT 0,20";
$sql4 = "SELECT * FROM cr1 WHERE (City LIKE '$city1' AND ST='$state') AND visible='' AND Rank >10 ORDER by PostDate,Rank LIMIT 0,20";
// #################################################################
// ########## LAYER ONE - PAID LOCAL
$result1 = mysql_query($sql1,$db);
echo "";
echo "";
if ($row1 = mysql_fetch_array($result1)) {
do {
?>
// #################################################################
// ########## LAYER FOUR - UNPAID LOCAL
$result4 = mysql_query($sql4,$db);
if ($row4 = mysql_fetch_array($result4)) {
do {
?>
} while ($row4 = mysql_fetch_array($result4));
}
// Show message if no reporters found
$total_found = mysql_num_rows($result1) + mysql_num_rows($result2) + mysql_num_rows($result3) + mysql_num_rows($result4);
if ($total_found == 0) {
echo '
No court reporters found for ' . $city1 . ', ' . $statefull . '
';
echo '
We are currently building our database of court reporters in this area.
If you need assistance in finding a court reporter to assist you with your court reporting needs, feel free call MoreLaw at 918-582-6422 or 866-753-1142 for assistance or E-mail MoreLaw at info@MoreLaw.Com and we will assist you free of charge in finding a court reporter to help you.
Since 1996, MoreLaw's goal has been to collect and publish information about the best court reporters in the United States.
$sql1 = "SELECT * FROM cr1 WHERE visible='' ORDER by PostDate DESC LIMIT 0,90";
$result1 = mysql_query($sql1,$db);
if ($row1 = mysql_fetch_array($result1)) {
do {
?>
If the information shown above is incorrect, please call us at 888-354-4529 and we will be happy to make any correction that you request at no charge.
} ?>
include getenv('SITE_BASE_PATH')."/app/layout/template_bottom.php";
}
?>