My Pet Finder .com

Find Puppies For Sale at My Pet Finder. Online Search For Dog and Puppy Breeds

Welcome to MyPetFinder.com - Sell Your Puppies

Are You A Puppy Breeder? Sell Your Puppies on MyPetFinder.com Today!

If you are a dog / puppy breeder, get started today as an exclusive mypetfinder.com advertiser. We have thousands of visitors visiting our site every day. By advertising at My Pet Finder, you'll be sure to have an increase in opportunities!

Sell Your Puppies Today in 3 Easy Steps!

Step 1. Register as an advertiser

Step 2. Login and post your ad

Step 3. Choose your advertising package


Advertising Packages and Rates

//mysql variables $user = "mypetfinderDB"; $pass = "mypetfinder123"; $url_Prefix="https://admin.mypetfinder.com"; //production $host = "mysql.mypetfinder.com"; $db_name = "mypetfinderDB"; $dsn = "mysql://$user:$pass@$host/$db_name"; //windows $link = mysql_connect($host, $user, $pass); if (!$link) { echo " Sorry we are having network issues. Please revisit in a short while."; exit; } // set the current db $db_selected = mysql_select_db($db_name, $link); if (!$db_selected) { echo" Sorry we are having network issues. Please revisit in a short while."; exit; } ?> function chkSqlError($db) { if (DB::isError($db)) { // get the native backend error // and the last query echo $db->getDebugInfo(); echo "

Sorry, we are experiencing heavy network traffic on our database server. Please try back in about 15 minutes.

"; exit; } } function FillTemplate ($inName, $inValues=array(), $inUnhandled="delete") { $theTemplateFile="$inName"; if($theFile=fopen($theTemplateFile,'r')) { $theTemplate=fread($theFile, filesize($theTemplateFile)); fclose($theFile); } $theKeys=array_keys($inValues); foreach($theKeys as $theKey) { //lok for and replace the key everywhere it occurs in the template $theTemplate=str_replace("\{$theKey}",$inValues[$theKey],$theTemplate); } if('delete'==$inUnhandled){ //remove remaining keys $theTemplate=eregi_replace('{[^ }]*}','',$theTemplate); } elseif ('comment' ==$inUnhandled) { //comment remaining keys $theTemplate=eregi_replace('{([^}]*)}','', $theTemplate); } return $theTemplate; } function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } function chkUserExists($userName) { include("mySQLpref.php"); //-----------MySQL Code------------------------------------------------------------- $db = DB::connect($dsn); //first check if email even exists in db. $userExist=0; $chkUser="SELECT count(*) from real_estate_users where agentEmail='".$userName."'"; $userExist=$db->getOne($chkUser); //echo"$chkUser
$emailUser
"; chkSqlError($db); if ($userExist!=0) { return true; } else { return false; } } function authUser($userName,$password) { include("mySQLpref.php"); // That user doesn't exists in DB if (!chkUserExists($userName)) { $errorCode="Sorry, we do not have a user by that name."; return ($errorCode); } //email exists, now check password... else { $userID=0; $agentID=chkGoodUserPass($userName,$password); if ($agentID!=0) { //user is good, log them in set loggedIn status and auth to "yes"; logInStatus($agentID); return; } else { $errorCode="Sorry, we were unable to locate a user with email:$userName and the submitted password."; return($errorCode); } } }// end function authUser(); function logInStatus($agentID) { // function logs in user and sets status of loggedIn to yes; session_register('screenName'); session_register('agentID'); session_register('auth'); session_register('loggedIn'); $_SESSION['screenName']=getScreenName($agentID); $_SESSION['loggedIn']="yes"; $_SESSION['auth']="yes"; $_SESSION['agentID']=$agentID; //insert update information (time date stamp, ip address, etc). } function getScreenName($agentID) { include("mySQLpref.php"); $db = DB::connect($dsn); chkSqlError($db); // get the screen name; $screenName=""; $getSN="SELECT firstName,LastName from real_estate_users where agentID='".$agentID."'"; $screenName=$db->getRow($getSN); chkSqlError($db); $firstName=$screenName[0]; $lastName=$screenName[1]; $screenName="$firstName $lastName"; return $screenName; } function chkLoggedIn() { if ( (!array_key_exists('loggedIn',$_SESSION))||(!array_key_exists('auth',$_SESSION)) ) { return false; } if( ($_SESSION['loggedIn']=="yes")&&($_SESSION['auth']=="yes") ) { return true; } else { return false; } } function chkGoodUserPass($userName,$password) { // This will check database if the user and password match. include("mySQLpref.php"); $userID=0; //-----------MySQL Code------------------------------------------------------------- $db = DB::connect($dsn); chkSqlError($db); $getUserInfo="SELECT agentID, valid, password from real_estate_users where agentEmail='".$userName."' and password='".$password."'"; $userVerify=$db->getRow($getUserInfo); chkSqlError($db); $agentID=$userVerify[0]; $valid=$userVerify[1]; if ($valid!=1) { return 0; } else { return $agentID; } } function imageResizer ($imageFileName) { include("mySQLpref.php"); //get image information $fullImagePath="http://".$url_Prefix."/realestate_photos/".$imageFileName; $imageInfo=getimagesize($fullImagePath); $hgt=$imageInfo[1]; $wid=$imageInfo[0]; //loop to get it resized until less than 150 width and height while ( ($hgt>150)||($wid>150)) { $hgt=($hgt*.9); $wid=($wid*.9); } return ""; } function bigImageResizer ($imageFileName) { //get image information include("mySQLpref.php"); $fullImagePath="http://".$url_Prefix."/realestate_photos/".$imageFileName; $imageInfo=getimagesize($fullImagePath); $hgt=$imageInfo[1]; $wid=$imageInfo[0]; //loop to get it resized until less than 200 width and height while ( ($hgt>200)||($wid>200)) { $hgt=($hgt*.9); $wid=($wid*.9); } return ""; } function startImageResizer ($fullImagePath,$breed) { include("mySQLpref.php"); //get image information $imageInfo=getimagesize("$fullImagePath"); $hgt=$imageInfo[1]; $wid=$imageInfo[0]; //loop to get it resized until less than 200 width and height while ( ($hgt>400)||($wid>400)) { $hgt=($hgt*.95); $wid=($wid*.95); } return "".$breed." puppies for sale"; } function sendExpirationNotice($userID,$adID,$expDate) { include("mySQLpref2.php"); // get info for verifcation email link. $getUserInfoSql="SELECT ccName, Email, CompanyName from VendorContactTbl where UserId='".$userID."'"; $result = mysql_query($getUserInfoSql); $userData= mysql_fetch_array($result); $userName=$userData[0]; $userEmail=$userData[1]; $companyName=$userData[2]; //$adCode=getAdCode($adID,1,'',0); // SendMail Code $to=$userEmail; $subject = "My Pet Finder - Notice Of Your Expiring Ad"; $headers ="From: registration@mypetfinder.com\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $body="Dear $userName,\n\n Thank you for advertising $companyName with MyPetFinder.com as an advertiser.\n\n We want to remind you that you have an ad that will expire on $expDate\n After $expDate, this ad will be deactivated and will no longer be available on our system\n\n Please click on the following link to login and extend your ad. \n $url_Prefix \n\n Thanks!\n -MyPetFinder.com "; //print "msg $to,$subject, $body"; if (mail($to, $subject, $body,$headers)) { $message="message sent"; } else { $message="message error"; } return($message); } function sendVerification($email,$pw) { include("mySQLpref2.php"); // get info for verifcation email link. $getUserInfoSql="SELECT ccName, CompanyName, DECODE(`Password`,'vegasKey'), UserId, sessionID from VendorContactTbl where email='".$email."'"; $result = mysql_query($getUserInfoSql); $verifyData= mysql_fetch_array($result); $ccName=$verifyData[0]; $CompanyName=$verifyData[1]; $Password=$verifyData[2]; $UserId=$verifyData[3]; $sessionID=$verifyData[4]; // SendMail Code $to=$email; $subject = "My Pet Finder Registration"; $headers ="From: registration@mypetfinder.com\r\n"; $body="Dear $ccName,\n\n Thank you for registering $CompanyName with My Pet Finder.com as an advertiser.\n\n You have registered with the following information:\n Email:\t$email\n Password:\t$Password\n "; // If this is a send password request, no need to print out the verification link in the email if ($pw!=1) { $body=$body."Please click on the following link to properly activate your user account:\n $full_url/register/verify.php?Email=$email&UserId=$UserId&activate=$sessionID"; } if (mail($to, $subject, $body,$headers)) { $message="Thank you for registering with My Pet Finder.com. Please check your $email email to activate your account."; } else { $message="Sorry, we are experience unsually high traffic. Please try back in 15 mins."; } return($message); } function adImageResizer ($prefix,$imageFileName) { //get image information $ifullImagePath="http://admin.mypetfinder.com/ad_logos/".$imageFileName; $fullImagePath=$prefix.$imageFileName; //print "$fullImagePath
$ifullImagePath"; $ch = curl_init(); $timeout = 5; // set to zero for no timeout curl_setopt ($ch, CURLOPT_URL, $fullImagePath); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); $imageInfo=LoadJpeg($file_contents); //$theImageInfo=getimagesize($imageInfo); //$hgt=$theImageInfo[1]; //$wid=$theImageInfo[0]; // output $wid=imagesx($imageInfo); $hgt=imagesy($imageInfo); print "W $wid H $hgt"; //loop to get it resized until less than 200 width and height while ( ($hgt>200)||($wid>200)) { $hgt=($hgt*.95); $wid=($wid*.95); } return "".$breed." puppies for sale"; } function LoadJpeg ($imgname) { $im = @ImageCreateFromJPEG ($imgname); /* Attempt to open */ if (!$im) { /* See if it failed */ $im = ImageCreate (150, 30); /* Create a blank image */ $bgc = ImageColorAllocate ($im, 255, 255, 255); $tc = ImageColorAllocate ($im, 0, 0, 0); ImageFilledRectangle ($im, 0, 0, 150, 30, $bgc); /* Output an errmsg */ ImageString ($im, 1, 5, 5, "Error $imgname", $tc); } return $im; } function getFileContents($filename) { $contents=""; $FILE = fopen($filename, "r"); while (!(feof($FILE) ) ) { $contents.= fgets($FILE, 3000); } return ($contents); } function photoHTML ($PhotoFileName,$logoDim) { include ('mySQLpref2.php'); //print "
inside function photoHTML - img $PhotoFileName and dim $logoDim
"; $ifullImagePath="$url_Prefix/ad_logos/".$PhotoFileName; $dimArray=explode(",",$logoDim); $hgt=$dimArray[0]; $wid=$dimArray[1]; return "Puppies for sale at my pet finder - click for enlarged photo"; } function getAdCode ($adID,$color,$breed,$featured) { $getAdSql="SELECT Title, Description, Logo, LogoDim, Logo2, Logo2Dim, Logo3, Logo3Dim, Logo4, Logo4Dim, AdPhone, AdDisplayUrl, CompanyName, BusAddress, BusAddress2, BusCity, BusState, BusZip FROM AdTable WHERE AdId='".$adID."'"; //print "$getAdSql"; $result = mysql_query($getAdSql); $row = mysql_fetch_row($result); $sql_title=$row[0]; $sql_description=$row[1]; $sql_logo=$row[2]; $sql_logoDim=$row[3]; $sql_logo2=$row[4]; $sql_logoDim2=$row[5]; $sql_logo3=$row[6]; $sql_logoDim3=$row[7]; $sql_logo4=$row[8]; $sql_logoDim4=$row[9]; $sql_phone=$row[10]; $sql_url=$row[11]; $sql_companyName=$row[12]; $sql_busAd1=$row[13]; $sql_busAd2=$row[14]; $sql_busCity=$row[15]; $sql_busState=$row[16]; $sql_busZip=$row[17]; //proper the ad title and description $sql_title=ucwords($sql_title); $sql_description=ucwords($sql_description); //adjust the url $sql_url="$sql_url"; //format the phone number $areaCode="(".substr($sql_phone,0,3).") "; $prefix=substr($sql_phone,3,3)."-"; $last4num=substr($sql_phone,6,9); $sql_phone=$areaCode.$prefix.$last4num; //adjust photo code .. if one was submitted if ($sql_logo!="") { $sql_logo=photoHTML($sql_logo,$sql_logoDim); } if ($sql_logo2!="") { $sql_logo2=photoHTML($sql_logo2,$sql_logoDim2); } if ($sql_logo3!="") { $sql_logo3=photoHTML($sql_logo3,$sql_logoDim3); } if ($sql_logo4!="") { $sql_logo4=photoHTML($sql_logo4,$sql_logoDim4); } //build the ad if (($color%2)==0) { $adTopCode=""; } else { $adTopCode=""; } //if featured then define the link code if($featured==1) { $linkCode=""; } else { if ($breed!="") { $breedLink=strtolower(str_replace(" ","-",$breed)); $linkCode=""; } } $adHTMLcode="
Package Time Photos Features Amount
".$adTopCode.$linkCode.""; */ $adHTMLcode=$adHTMLcode."
"; $adHTMLcode=$adHTMLcode. "
$sql_logo

$sql_title


$sql_description


$sql_companyName $sql_url
Phone: $sql_phone
Address: $sql_busAd1 $sql_busAd2 $sql_busCity, $sql_busState $sql_busZip
"; /* $adHTMLcode=$adHTMLcode."

$sql_title


$sql_description


$sql_companyName $sql_url
Phone: $sql_phone
Address: $sql_busAd1 $sql_busAd2 $sql_busCity, $sql_busState $sql_busZip
$sql_logo2$sql_logo3$sql_logo4
"; return($adHTMLcode); } function getFeaturedAdCode($adID,$breed) { $typeUpdate="clicks"; updateStats($adID,$typeUpdate); // Record a click for this ad $getAdSql="SELECT a1.Title, a1.Description, a1.Logo, a1.LogoDim, a1.Logo2, a1.Logo2Dim, a1.Logo3, a1.Logo3Dim, a1.Logo4, a1.Logo4Dim, a1.AdPhone, a1.AdDisplayUrl, a1.CompanyName, a1.BusAddress, a1.BusAddress2, a1.BusCity, a1.BusState, a1.BusZip, a2.CreationDate, a3.LitterReadyDate, a3.Registry, a3.LitterMale, a3.LitterFemale, a3.Price, a3.color, a3.Vaccination, a3.AddInfo FROM AdTable a1, AdShort a2, ExtraInfo a3 WHERE a1.AdId='".$adID."' AND a3.AdId='".$adID."' AND a2.AdId='".$adID."'"; //print "$getAdSql"; $result = mysql_query($getAdSql); $row = mysql_fetch_row($result); $sql_title=$row[0]; $sql_description=$row[1]; $sql_logo=$row[2]; $sql_logoDim=$row[3]; $sql_logo2=$row[4]; $sql_logoDim2=$row[5]; $sql_logo3=$row[6]; $sql_logoDim3=$row[7]; $sql_logo4=$row[8]; $sql_logoDim4=$row[9]; $sql_phone=$row[10]; $sql_url=$row[11]; $sql_companyName=$row[12]; $sql_busAd1=$row[13]; $sql_busAd2=$row[14]; $sql_busCity=$row[15]; $sql_busState=$row[16]; $sql_busZip=$row[17]; $creationDate=$row[18]; $litterReadyDate=$row[19]; $registry=$row[20]; $litterMale=$row[21]; $litterFemale=$row[22]; $price=$row[23]; $color=$row[24]; $vaccination=$row[25]; $addInfo=$row[26]; //proper the ad title and description $sql_title=ucwords($sql_title); $sql_description=ucwords($sql_description); //adjust the url $sql_url="$sql_url"; //format the phone number $areaCode="(".substr($sql_phone,0,3).") "; $prefix=substr($sql_phone,3,3)."-"; $last4num=substr($sql_phone,6,9); $sql_phone=$areaCode.$prefix.$last4num; //adjust photo code .. if one was submitted if ($sql_logo!="") { $sql_logo=photoHTML($sql_logo,$sql_logoDim); } if ($sql_logo2!="") { $sql_logo2=photoHTML($sql_logo2,$sql_logoDim2); } if ($sql_logo3!="") { $sql_logo3=photoHTML($sql_logo3,$sql_logoDim3); } if ($sql_logo4!="") { $sql_logo4=photoHTML($sql_logo4,$sql_logoDim4); } $adHTMLcode="


$sql_title
Breed: $breed
Submitted: $creationDate
Description:$sql_description

Owner Details

$sql_company $sql_url
Phone: $sql_phone
Address: $sql_busAd1 $sql_busAd2 $sql_busCity, $sql_busState $sql_busZip

Litter Details


Ready Date: $litterReadyDate
Registries*: $registry
Litter Size Males: $litterMale | Females: $litterFemale
Price Range: $$price
Colors: $color

Vaccinations / Health Certifications


Vaccinations: $vaccination
Additional Information:
$addInfo

$sql_logo $sql_logo2 $sql_logo3 $sql_logo4
Please click on photo to enlarge

"; return($adHTMLcode); } function updateStats($adID,$typeUpdate){ $statsSql="SELECT Impressions,Clicks from AdStats WHERE AdID='".$adID."'"; $result = mysql_query($statsSql); $row = mysql_fetch_row($result); $impStats=$row[0]; $clicksStats=$row[1]; if($typeUpdate=="imp") { $impStats=$impStats+1; $updateStatsSql="UPDATE AdStats SET Impressions=$impStats WHERE AdId='".$adID."'"; } elseif($typeUpdate=="clicks") { $clicksStats=$clicksStats+1; $updateStatsSql="UPDATE AdStats SET Clicks=$clicksStats WHERE AdId='".$adID."'"; } //do the update $result = mysql_query($updateStatsSql); if (!$result) { print ""; die('Sorry there is unusually high traffic at this moment, please try again in a short while. '); } } function getBreedName ($adID) { $getCategory="SELECT Category FROM AdShort where AdId='".$adID."'"; $result = mysql_query($getCategory); $row = mysql_fetch_row($result); $category=$row[0]; $getBreed="SELECT name FROM categories WHERE categoryID='".$category."'"; $result = mysql_query($getBreed); $row = mysql_fetch_row($result); $breed=$row[0]; return($breed); } function paypal_encrypt($hash) { //Sample PayPal Button Encryption: Copyright 2006 StellarWebSolutions.com //Not for resale - license agreement at //http://www.stellarwebsolutions.com/en/eula.php global $MY_KEY_FILE; global $MY_CERT_FILE; global $PAYPAL_CERT_FILE; global $OPENSSL; $openssl_cmd = "$OPENSSL smime -sign -signer $MY_CERT_FILE -inkey $MY_KEY_FILE " . "-outform der -nodetach -binary | $OPENSSL smime -encrypt " . "-des3 -binary -outform pem $PAYPAL_CERT_FILE"; $descriptors = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), ); $process = proc_open($openssl_cmd, $descriptors, $pipes); if (is_resource($process)) { foreach ($hash as $key => $value) { if ($value != "") { print "
Adding to blob: $key=$value\n"; fwrite($pipes[0], "$key=$value\n"); } } fflush($pipes[0]); fclose($pipes[0]); $output = ""; while (!feof($pipes[1])) { print "
output... $output"; $output .= fgets($pipes[1]); } print "done-- $output"; fclose($pipes[1]); $return_value = proc_close($process); return $output; } return "ERROR"; }; ?>
Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/sdang/mypetfinder.com/sell_your_puppies/index.php on line 55

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/sdang/mypetfinder.com/sell_your_puppies/index.php on line 55

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sdang/mypetfinder.com/sell_your_puppies/index.php on line 58

Trial and Bronze Packages


* Includes one free photo upload
* Ad appears on detailed breeder page (bottom of page)
* Ad is rotated and appears on homepage for maximum exposure!

Silver and Gold Packages


* You get 4 photos!
* Top of the page position on breeder info page!
* You get your own custom detailed web page to post additional information!
* Ad is rotated and appears on top of homepage for maximum exposure!



Click here to get started today!

 

Click here to get started today!

Click here to get started today!