<<<<Restricted Area>>>>" .
"
Sorry, you must Log In to view this Page
<<<<Restricted Area>>>>" .
"
Problem with your username. Please Log In again.
Error searching for $srchit by Name.
Please go back and check your input.
Could not match name using these parameters.
"); }else{ $emnumb = mysql_num_rows($getitb); if($emnumb < 1){ $warn = "On"; $messo = "Could not find similar instances of ".$srchit."."; }else{ $quest = "On"; $messo = "No Exact Match. Similar instances displayed below."; while($row = mysql_fetch_array($getitb)){ $qCID[] = $row['ID']; $qfirst_Name[] = $row['first_Name']; $qName[] = $row['Name']; $qCompany[] = $row['Company']; $qPhone[] = $row['Phone']; $qemail[] = $row['email']; } }//ifemnumbisoner }//ifgotitb }//ifnamcountisone }//ifnCIDreallydoesequalemptystring }//ifgotit }//ifsearchbyisname if($searchby == "Company"){ $getit = mysql_query("SELECT ID,first_Name,Name,Company,Phone,email FROM con_main WHERE usrn='$usrn' AND Company='$srchit'"); if(!$getit){ echo("Error searching for $srchit by Company.
Please go back and check your input.
Could not get Company using these parameters. ".mysql_error()."
"); }else{ $comnumb = mysql_num_rows($getitb); if($comnumb < 1){ $warn = "On"; $messo = "Could not find similar instances of ".$srchit."."; }else{ $quest = "On"; $messo = "No Exact Match. Similar instances displayed below."; while($row = mysql_fetch_array($getitb)){ $qCID[] = $row['ID']; $qfirst_Name[] = $row['first_Name']; $qName[] = $row['Name']; $qCompany[] = $row['Company']; $qPhone[] = $row['Phone']; $qemail[] = $row['email']; } }//if$comnumbisgreaterthanone }//ifgotitb }//ifcomnumislessthanone }//ifgotit }//ifsearchbyisCompany if($searchby == "Email"){ $getit = mysql_query("SELECT ID,first_Name,Name,Company,Phone,email FROM con_main WHERE usrn='$usrn' AND email='$srchit'"); if(!$getit){ echo("Error searching for $srchit by Company.
Please go back and check your input.
Could not get Email using these parameters. ".mysql_error()."
"); }else{ $emnumb = mysql_num_rows($getitb); if($emnumb < 1){ $warn = "On"; $messo = "Could not find similar instances of ".$srchit."."; }else{ $quest = "On"; $messo = "No Exact Match. Similar instances displayed below."; while($row = mysql_fetch_array($getitb)){ $qCID[] = $row['ID']; $qfirst_Name[] = $row['first_Name']; $qName[] = $row['Name']; $qCompany[] = $row['Company']; $qPhone[] = $row['Phone']; $qemail[] = $row['email']; } }//if$comnumbisgreaterthanone }//ifgotitb }//ifemcountislessthanone }//ifgotit }//ifsearchbyisEmail if($searchby == "Phone"){ $getit = mysql_query("SELECT ID,first_Name,Name,Company,Phone,email FROM con_main WHERE usrn='$usrn' AND Phone='$srchit'"); if(!$getit){ echo("Error searching for $srchit by Phone Number.
Please go back and check your input.
Could not get Phone using first parameter. ".mysql_error()."
"); }else{ $emnumb = mysql_num_rows($getitb); if($emnumb < 1){ $warn = "On"; $chk1 = 1; }else{ $quest = "On"; $messo = "No Exact Match. Similar instances displayed below."; while($row = mysql_fetch_array($getitb)){ $qCID[] = $row['ID']; $qfirst_Name[] = $row['first_Name']; $qName[] = $row['Name']; $qCompany[] = $row['Company']; $qPhone[] = $row['Phone']; $qemail[] = $row['email']; } }//ifcomnumbisgreaterthanone }//ifgotitb }//ifemcountislessthanone $getitc = mysql_query("SELECT ID,first_Name,Name,Company,Phone,email FROM con_main WHERE Phone LIKE '%$phonstart[1]%' AND usrn='$usrn'"); if(!$getitc){ echo("Could not get Phone using second parameter. ".mysql_error()."
"); }else{ $emnumb = mysql_num_rows($getitc); if($emnumb < 1){ $warn = "On"; $chk2 = 1; }else{ $quest = "On"; $messo = "No Exact Match. Similar instances displayed below."; while($row = mysql_fetch_array($getitc)){ $qCID[] = $row['ID']; $qfirst_Name[] = $row['first_Name']; $qName[] = $row['Name']; $qCompany[] = $row['Company']; $qPhone[] = $row['Phone']; $qemail[] = $row['email']; } }//ifcomnumbisgreaterthanone }//ifgotitb }//ifemcountislessthanone $getitd = mysql_query("SELECT ID,first_Name,Name,Company,Phone,email FROM con_main WHERE Phone LIKE '%$phonstart[2]' AND usrn='$usrn'"); if(!$getitd){ echo("Could not get Phone using second parameter. ".mysql_error()."
"); }else{ $emnumb = mysql_num_rows($getitd); if($emnumb < 1){ $warn = "On"; $chk3 = 1; }else{ $quest = "On"; $messo = "No Exact Match. Similar instances displayed below."; while($row = mysql_fetch_array($getitd)){ $qCID[] = $row['ID']; $qfirst_Name[] = $row['first_Name']; $qName[] = $row['Name']; $qCompany[] = $row['Company']; $qPhone[] = $row['Phone']; $qemail[] = $row['email']; } }//ifcomnumbisgreaterthanone }//ifgotitb }//ifemcountislessthanone $messchk = $chk1 + $chk2 + $chk3; if($messchk == 3){ $messo = "Could not find similar instances of ".$srchit."."; } }//ifgotit }//ifsearchbyisPhone if($searchby == "ZipCode"){ $getit = mysql_query("SELECT ID,first_Name,Name,Company,Phone,email FROM con_main WHERE usrn='$usrn' AND ZipCode='$srchit'"); if(!$getit){ echo("Error searching for $srchit by Zip Code.
Please go back and check your input.
Could not get Zip Code using these parameters. ".mysql_error()."
"); }else{ $emnumb = mysql_num_rows($getitb); if($emnumb < 1){ $warn = "On"; $messo = "Could not find similar instances of ".$srchit."."; }else{ $quest = "On"; $messo = "No Exact Match. Similar instances displayed below."; while($row = mysql_fetch_array($getitb)){ $qCID[] = $row['ID']; $qfirst_Name[] = $row['first_Name']; $qName[] = $row['Name']; $qCompany[] = $row['Company']; $qPhone[] = $row['Phone']; $qemail[] = $row['email']; } }//if$comnumbisgreaterthanone }//ifgotitb }//ifemcountislessthanone }//ifgotit }//ifsearchbyisZipCode ?>Contact List for | Print List New Contact | |||
Manage | Name | Company | Phone | |
$messo [BACK] | ||||
$messo | ||||
[ View/Edit ]" . " [ REMOVE ] | " . "$qfirst_Name[$i] $qName[$i] | $qCompany[$i] | $qPhone[$i] | $qemail[$i] | " . "
|
![]() |
©2006 - Data Base Interface - Custom Built at:
![]() |