Interactive hybrid cars resource
GreenHybrid Home - Hybrid Cars
Hybrid Cars Discussion Forums
Hybrid Articles
Hybrid Mileage Database & Car Specs
Hybrid Car Photo Gallery
Shopping Guide for Hybrid Cars


Go Back   GreenHybrid - Hybrid Cars > Central Information Center > Our Announcements
Register FAQ Members List Search Today's Posts Mark Forums Read

Our Announcements The latest official news from GreenHybrid. Reply only. 

Reply
 
Thread Tools Search this Thread
  #1 (permalink)  
Old 11-15-2004, 08:21 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,412
Default

Suddenly it struck me that there are actually more than 2,478,935 miles worth of data in the Real Hybrid Mileage Database (as of 11/15/04 @ 11PM EST). Currently, this number is obtained by adding the total distance variable for each car and totaling. However, when I added this statistic, I apparently forgot there are also tanks in the database that aren't contributing to a vehicle's total because of both an odometer override and additional tanks. For this reason, there very well may be a few hundred thousand more miles in the database than I thought. I'll try and update the code to reflect this ASAP.

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-15-2004, 08:37 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,412
Default

Odd. I made a change that should have fixed the code, but it actually came up with LESS miles! Hmmm. Who knows PHP?

OLD
Code:
$getmiles = mysql_query("SELECT SUM(sumdistance) AS total FROM car"); $miles = mysql_fetch_array($getmiles);
NEW
Code:
$getmiles = mysql_query("SELECT SUM(sumdistance) AS total FROM car WHERE lmpgoverride != 0"); $carmiles = mysql_fetch_array($getmiles); $getmoremiles = mysql_query("SELECT SUM(distance) AS total FROM data"); $datamiles = mysql_fetch_array($getmoremiles); $miles = $carmiles['total'] + $datamiles['total'];

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-16-2004, 01:01 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,412
Default

Fixed! Now at 2,718,747 miles

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB 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 Topic Starter Forum Replies Last Post
"TCP Error" while updating mileage database... BIF Fuel Economy & Emissions 2 09-16-2004 02:51 PM
Mileage Database Updates Jason Our Announcements 11 05-14-2004 12:51 PM
Upcoming Mileage Database Updates Jason Fuel Economy & Emissions 6 04-22-2004 11:47 AM
Real Mileage Database krousdb Fuel Economy & Emissions 26 04-06-2004 02:25 PM
Real Mileage Database Jason Our Announcements 89 03-24-2004 02:41 AM


All times are GMT -7. The time now is 04:18 PM.



This website is made possible by people like you.
Thank you.


HOME   .   DISCUSS   .   LEARN   .   COMPARE   .   SHARE   .   SHOP

About      Press Release      Contact

Suggested Link      Promote Hybrids      Site Store




COPYRIGHT © 2005-2006 Internet Brands, Inc. | Privacy Policy

SEO by vBSEO 3.0.0