= $i){ $i = $offset; $result[] = $offset; } } } $firstdot= $result[0]; $seconddot= $result[1]; $thirddot=$result[2]; $part1=substr ( $ip, 0, $firstdot); $part2=substr ( $ip, $firstdot+1, $seconddot-$firstdot-1); $part3=substr ( $ip, $seconddot+1, $thirddot-$seconddot-1); $part4=substr ( $ip, $thirddot+1, 3); $decimalip= $part1*16777216+$part2*65536+$part3*256+$part4; $sql = "SELECT * FROM `iplist` WHERE `ipfrom` <= $decimalip and `ipto` >= $decimalip"; $countrylist = mysql_query($sql) or die("$sql"); $hits=mysql_num_rows ($countrylist); $retval="Unknown"; if($hits>0){ $row = mysql_fetch_assoc($countrylist); $retval=$row['country']; } // echo ("hits: ".$hits." IP: ".$ip." Decimal IP: ".$decimalip." Retval: ".$retval); $_SESSION['country']=$retval; $rawkeyword_string = $_GET['searchval']; // In case the search value is passed between pages $referertext=$_SERVER['HTTP_REFERER']; $_SESSION['refererstring']=$referertext; $parsed_url=parse_url($referertext); $querystring=$parsed_url; $googleresult=strpos($parsed_url['host'],'google'); $yahooresult=strpos($parsed_url['host'],'yahoo'); $bingresult=strpos($parsed_url['host'],'bing'); $AOLresult=strpos($parsed_url['host'],'aol'); $askresult=strpos($parsed_url['host'],'ask.com'); $dogpileresult=strpos($parsed_url['host'],'dogpile.com'); if($googleresult !== false): parse_str($parsed_url['query'],$parsed_query_string); $rawkeyword_string=$parsed_query_string['q'].'[G]'; $_SESSION['keyword']=$rawkeyword_string; $_SESSION['engine']="Google"; elseif($yahooresult !== false): parse_str($parsed_url['query'],$parsed_query_string); $rawkeyword_string=$parsed_query_string['p'].'[Y]'; $_SESSION['keyword']=$rawkeyword_string; $_SESSION['engine']="Yahoo"; elseif($bingresult !== false): parse_str($parsed_url['query'],$parsed_query_string); $rawkeyword_string=$parsed_query_string['q'].'[B]'; $_SESSION['keyword']=$rawkeyword_string; $_SESSION['engine']="Bing"; elseif($AOLresult !== false): parse_str($parsed_url['query'],$parsed_query_string); $rawkeyword_string=$parsed_query_string['query'].'[AOL]'; $_SESSION['keyword']=$rawkeyword_string; $_SESSION['engine']="AOL"; elseif($askresult !== false): parse_str($parsed_url['query'],$parsed_query_string); $rawkeyword_string=$parsed_query_string['q'].'[Ask]'; $_SESSION['keyword']=$rawkeyword_string; $_SESSION['engine']="Ask.com"; else: $_SESSION['engine']="None"; $_SESSION['keyword']="None"; $destination="Landed"; endif; } // Session variables are now defined $keyword_string=rawurlencode($_SESSION['keyword']); // Write to Database $db = MYSQL_CONNECT($roothostname,$rootusername, $rootpassword) OR DIE("Unable to connect to database"); $db1 = mysql_select_db($dbName, $db) or die ("Couldn't select database."); $time = date("Y-m-d H:i:s"); $justdate = date("Y-m-d"); $pagename="/tools"; $ip=$_SESSION['hostip']; $kw=$_SESSION['keyword']; $country=$_SESSION['country']; $engine=$_SESSION['engine']; $thissession=session_id(); $qry="INSERT INTO `clicks` (`date_clicked` , `justdate`, `ip_address` , `page`, `keyword`,`engine`,`session`, `dest_url`, `country`) VALUES ('$time', '$justdate','$ip' , '$pagename' , '$kw', '$engine', '$thissession', '$destination', '$country');"; mysql_query($qry) or die("something went wrong"); $linkbase="'; // External links $smartcreditlink=$linkbase."Smart%20Credit%20with%20Free%20Trial&searchval=".$keyword_string."'>"; $loanlink=$linkbase."Personal%20Loans&searchval=".$keyword_string."'>"; ?> 3 Credit Report|All 3 Credit Reports-CreditScoreQuick.com
credit score quick

Tips for Improving Your Credit Score

A credit score is a number based on a complex formula that takes in a number of financial factors...
Tips for Improving Your Credit Score

Pricing Studies and Internet Economics

We pay our bills with the Internet. We register our personal information with web sites. We purchase our needs and wants on the Internet...
Pricing Studies and Internet Economics

Credit Card and Identity Theft Resource Guide

Financial identify theft is the action of stealing another person's identity in the form of personal information, such as bank account or credit card numbers, to receive benefits in that person's name...
Credit Card and Identity Theft Resource Guide

Tips for Reducing Your Credit Card Debt

Millions of people have a credit card account, and often more than one. Most people who have credit cards hold some kind of balance on the card, which is also known as credit card debt...
Tips for Reducing Your Credit Card Debt
Ask the Credit Report Guru
ask the credit report guru Send us a question.
CreditScoreQuick.com Answers

About CreditScoreQuick.com
Your credit is your life; if you don't manage it properly it could cost you thousands of dollars over your life span.

Send us your credit questions and we will answer within 24 hrs..

Ask a Credit Question

Free Credit Report Tips and Faqs.

See how lenders, and creditors evaluate your credit history, and read articles for anyone wanting a higher credit score and understand credit reports.
Credit Report Articles
Credit Reports: How to contact the three major credit bureaus.
 transunion  experian Credit Education 

TransUnion Disputes and Fraud Victim Assistance

The most efficient method to initiate an investigation. Option to create a dispute online. Write to: P.O. Box 740256, Alanta, GA 30374 or call (800) 797-7033 for details.

Dispute TransUnion Now!

Experian Disputes
and Fraud Alert

Your Rights under the Fair Credit Reporting Act. Add a fraud alert message to your credit report to help protect your credit information. Write to: P.O. Box 9595, Allen, TX 75013 or call (800) 583-4080 for info.

Dispute Experian Now!

Credit Resources and Credit Repair Articles
Get Credit News Experian Disputes and Fraud Alert
Get Credit News TransUnion Disputes and Fraud Victim Assistance