Big Webmaster

  • bots
  • code
  • ecommerce
  • misc
  • software
  • tips
  • tools

MySQL Query on timestamp using PHP

on March 11, 2010 - 0 Comments
Categories: code

In this example I had to create a query only to display orders for the last 90 days.

standard timestamp field in MySQLThe orders table is using a standard MySQL timestamp field to store the date of the order. I made timestamp indexed since we will be doing this query against this field.

I figured the easiest way was to only query those 90 days, that way I didn’t have to worry about looking at each row and comparing a date during output. All I had to worry about was creating the right query.

The first line simply is the number of days to go back in the query, in this case the number of days is 90.
The next 2 lines are used to create and format our new date 90 days in the past.
In the query we simply select all records that are newer than our 90 day old date.

$daysback = 90;
$accessdate = strtotime(“-$daysback days”,time());
$mysqldate = date( ‘Y-m-d H:i:s’, $accessdate );

$myquery = “select id,ordernumber,timestamp from tblorders where (timestamp > ‘$mysqldate’);”;

Share your thoughts..

CubeCart 5 Beta

on January 17, 2010 - 0 Comments
Categories: ecommerce

When we opened our e-commerce store almost 2 years ago I spent a lot of time researching shopping cart software. Now I knew this would be both an important decision. Shopping cart software is a major influence on the success (or failure) of any e-commerce website.

Read more »

Share your thoughts..

Tasapspider/0.9

on December 23, 2009 - 3 Comments
Categories: bots

Just found this “bot” going crazy on a site that is on a dedicated server, took the entire server offline. This bot looks to be new and from China, so be on the lookout.

Other reports are saying it is ignoring the robots.txt file, so might not be good enough to deny it there.

It was coming from 218.28.29.236

Here are more details about that IP, and what ranges you might want to block.

http://whois.domaintools.com/218.28.29.236

I placed the following in my .htaccess file


order allow,deny
deny from 218.28.
deny from 218.29.
allow from all

Please post a comment if you this bot has hit your site.

3 Comments

Short Meta Descriptions Can Kill Your Website

on December 22, 2009 - 0 Comments
Categories: tips

Traffic Drop

If you look at the graph above you will see the nice steady growth of a website. Then suddenly a drop! The site in question dropped from an average of over 100 unique visitors per day down to less than 5 per day. Quite a significant drop! Once I was sure the drop was going to stick, I made a few minor changes and then just left the site alone for a long time. Yes, I was disappointed, but it was not something I had time or ambition to address at the time.

Note: you will see on the chart short regain of traffic, but this seems to be a normal “blip” that can happen as rankings are sorted out across Google data centers.

Fast forward a month or so, and I am looking in through the webmaster tools, and happen to notice the HTML suggestions section under Diagnostics. There I see a line that says: “Short meta descriptions x,xxx”, which is just about every single page of the site. Immediately I fix the problem with the meta descriptions.

The Google Word on Meta Descriptions

Read more »

Share your thoughts..

Tracking Email Marketing Results

on November 27, 2009 - 0 Comments
Categories: code, ecommerce

successful-email-marketing

Find out if users are reading and responding to your email newsletters. This simple method will determine a direct correlation between newsletter clicks and sales.

Read more »

Share your thoughts..

Website backups

on September 17, 2009 - 0 Comments
Categories: code, tips

backup-with-ncftpHow to automate website backups.

Follow this very simple procedure to schedule your website backups. You will be glad you did.

Read more »

Share your thoughts..

Next Page »

  • Recent Posts

    • MySQL Query on timestamp using PHP
    • CubeCart 5 Beta
    • Tasapspider/0.9
    • Short Meta Descriptions Can Kill Your Website
    • Tracking Email Marketing Results
  • Recent Comments

    • bigw on Tasapspider/0.9
    • jay on Wordpress Automatic Update with 1and1
    • Roger on Tasapspider/0.9
    • Clifford on Wordpress Automatic Update with 1and1
    • Howard on Wordpress Automatic Update with 1and1
  • Archives

    • March 2010
    • January 2010
    • December 2009
    • November 2009
    • September 2009
    • August 2009
    • May 2009
    • April 2009
    • February 2009
    • December 2008
    • November 2008
    • September 2008
    • July 2008
    • June 2008
    • April 2008
    • February 2008


Copyright © 2010 Big Webmaster