Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Domain Monster Domain Name Registration

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 03:58:16 AM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > General and Domain News > General Board
Connect with Facebook

General Board General discussions. Please check main forum categories before posting here.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 08-01-2009, 01:25:32 PM     #21 (permalink)

 
Skinner's Avatar
 
Join Date: Jul 2008
Location: Manchester
Posts: 2,507
Skinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond repute

No Problems

I'm just fixing an issue with the domain name collection and I'll put a blank template in too
__________________
Browse:
Skinner is offline  
Old 08-01-2009, 02:33:55 PM     #22 (permalink)

 
Skinner's Avatar
 
Join Date: Jul 2008
Location: Manchester
Posts: 2,507
Skinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond repute

Replace the top code between the <? and ?> down to the start of the html page.

PHP Code:
<?
include ('./mysql_connect.php');
$debug false;

    

    
/////////////// START DOMAIN CAPTURE BLOCK ////////////////
    
$domainz substr($_SERVER['HTTP_HOST'], strpos($_SERVER['HTTP_HOST'], '.')+1);
    if (
strlen($domainz) <= 6) {
        
$domainz $_SERVER['HTTP_HOST'];
        if(
$debug == true) { echo '<p>var $domainz - Length: ' strlen($domainz) . ' - Value: ' .  $domainz ' - Sub Domain: No</p>'; }
    } else {
        
$domainz substr($_SERVER['HTTP_HOST'], strpos($_SERVER['HTTP_HOST'], '.')+1);
        if(
$debug == true){ echo '<p>var $domainz - Length: ' strlen($domainz) . ' - Value: ' .  $domainz ' - Sub Domain: Yes</p>'; }
    }    
    
//////////////// END DOMAIN CAPTURE BLOCK /////////////////
    
    
    /////////////// START DOMAIN DEFAULT BLOCK ////////////////
    // add a catch all default.
    //$domainz = "Holding Page"; //set this to whatever you want as your <h1></h1> tag on the page and update the below sql.
    //INSERT INTO `seldoms` (`id`, `domain`, `title`, `description`, `price`, `added`) 
    //VALUES (NULL, 'Holding Page', 'Default Holding Page', 'Sales Jagon', 'Mid &pound;XXX', NOW());
    
$queryt "SELECT domain FROM seldoms WHERE domain = '$domainz' LIMIT 1";
    
$resultt mysql_query($queryt);
    
$count mysql_num_rows($resultt); 
    if(
$count == 0)    {
        
$domainz "Holding Page"//update this to match.
        
if($debug == true){ echo '<p>var $domainz - Length: ' strlen($domainz) . ' - Value: ' .  $domainz ' - Database: False <br> Query: ' $queryt '</p>'; }
        }
    
//////////////// END DOMAIN DEFAULT BLOCK /////////////////


    /////////////// STATS BLOCK START ////////////////
    //CREATE TABLE `modsanc_seldom`.`stats` (
    //`id` INT NOT NULL AUTO_INCREMENT ,
    //`url` VARCHAR( 70 ) NOT NULL ,
    //`referer` VARCHAR( 256 ) NOT NULL ,
    //`client` VARCHAR( 512 ) NOT NULL ,
    //`added` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
    //PRIMARY KEY ( `id` ) ,
    //INDEX ( `id` ) 
    //) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci 
    
$debugstat 0;
    
$ref mysql_real_escape_string($_SERVER['HTTP_REFERER']);
    
$cli mysql_real_escape_string($_SERVER['HTTP_USER_AGENT']);
    
$ips mysql_real_escape_string($_SERVER['REMOTE_ADDR']);
    
$query2 "INSERT INTO `stats` (`id`, `ip`, `url`, `referer`, `client`, `added`) VALUES (NULL, '$ips', '$domainz', '$ref', '$cli', NOW());";
    
$result mysql_query($query2); 
     if (
$debugstat==1) { //debug
         
echo "Query Result: <pre>$result</pre><br />
         Query Sumitted: <pre>
$query2</pre>";
    if(
$result != "1")    {
        
$error mysql_errno().": ".mysql_error();
        echo 
"Error Code: ID:10T<br />
        Error Description: <pre>
$error</pre>\n";
    } else {
        echo 
"Stat Point has been added.<br>";
    }
    }
//end debug
    /////////////// STATS BLOCK END ////////////////


    
$query "SELECT id, domain, title, description, price,  date_format(added, '%d/%m/%Y \@ %h:%i %p') AS adds FROM seldoms WHERE domain = '$domainz' LIMIT 1"
    
    
$doms =  mysql_query($query) or die("Select Failed!");
    
    while (
$row mysql_fetch_array($doms)) {
?>
__________________
Browse:

Last edited by Skinner; 08-01-2009 at 02:45:43 PM. Reason: Fixed another code.
Skinner is offline  
Closed Thread



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
Parking Statistics page is not updating notoriousfrench Sedo 1 13-03-2008 08:20:03 PM
Name Giant's Smart New Landing Page Nigel General Domain Parking 2 30-11-2006 12:57:42 PM
Go-Daddy domain parking page mally General Domain Parking 1 01-04-2006 08:32:59 PM
How do I change the landing page on SEDO? 3cats Sedo 1 18-02-2006 12:23:24 PM


All times are GMT. The time now is 03:58:16 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".