BBS.PROGENIC.COM
Home      Members   Calendar   Who's On   SOTM
Welcome Guest ( Login | Register )
      

Home » Chat » Coding » Car Trader

««123»»

Car TraderExpand / Collapse
Author
Message
Posted Monday, March 03, 2008 4:19 AM


Progenic Family

Progenic Family

Group: Forum Members
Last Login: 2 days ago @ 3:03 PM
Posts: 531, Visits: 1,365
i'll trade ya proge
Post #13947
Posted Monday, March 03, 2008 7:34 PM


Progenic Family

Progenic Family

Group: Old Skool
Last Login: 2 days ago @ 12:06 PM
Posts: 261, Visits: 2,283
_Infernal_ (3/3/2008)
i'll trade ya proge


why does this not surprise me?







---------------------------------------------------------------
move real easy. stay real loose.
---------------------------------------------------------------
Post #13956
Posted Tuesday, March 04, 2008 10:52 AM


Progenic Crew

Progenic Crew

Group: Administrators
Last Login: Yesterday @ 3:49 PM
Posts: 2,386, Visits: 37,335
lol

beezer that site you sent me has all car data when you view source, you could rip it from there if you want i'll try do it for ya.

 

Post #13957
Posted Tuesday, March 04, 2008 12:03 PM


Progenic Family

Progenic Family

Group: Forum Members
Last Login: 2 days ago @ 3:03 PM
Posts: 531, Visits: 1,365
stadz (3/3/2008)
_Infernal_ (3/3/2008)
i'll trade ya proge


why does this not surprise me?

don't insult my horse dude!

uh..i hate no watermark funny images
Post #13959
Posted Tuesday, March 04, 2008 12:44 PM


Progenic Family

Progenic Family

Group: Old Skool
Last Login: Today @ 4:57 AM
Posts: 1,073, Visits: 2,301
proge (3/4/2008)
lol

beezer that site you sent me has all car data when you view source, you could rip it from there if you want i'll try do it for ya.

I'll try and see if I can do it. Organizing this thing is gonna be a huge bitch...

-------------
Is Beezer gonna have to choke Google Adsense?
Post #13960
Posted Tuesday, March 04, 2008 7:59 PM


Progenic Crew

Progenic Crew

Group: Administrators
Last Login: Yesterday @ 3:49 PM
Posts: 2,386, Visits: 37,335
you ever used a relational database?

ideally you want two tables one something like manid and manufacturer and another table with modelid,manid,model

So for example in your manufacturer table you'd have a record for each manufacturer

manid - 7
manufacturer - Ford


and in your model table a record for each model

modelid - 14
manid - 7
model - Mustang

modelid - 15
manid - 7
model - GT90


this is the best way to organise the data with the future in mind.


 

Post #13964
Posted Wednesday, March 05, 2008 8:00 AM


Progenic Family

Progenic Family

Group: Old Skool
Last Login: Today @ 4:57 AM
Posts: 1,073, Visits: 2,301
Never used a relational database. But sounds like the way to go...

I was thinking of going with more than 2 tables though.
I'd have a table for all the manufacturers.

And then each manufacturer would have its own table.

Table (Manufacturer)
manid - 1
name - Ford

manid - 2
name - BMW

Then I'd have 2 extra tables.

Table (Ford)
manid - 1
modelid - 1
model - Munstang

manid - 1
modelid - 2
model - F150

Table (BMW)
manid - 2
modelid - 1
model - 316

manid - 2
modelid - 2
model - 320

What do you think? I think it would bring search results faster, less cpu, and backing up will be several smaller files. Not one big clump.

I'm also gonna have to look up how to make a database of images. Should be easy, usually I import the image right into the database so the client backup is easier. But this will have way too many images to put them in with the database, so a generic folder might possibly be the best way, renaming the file on upload to modelidmanid.jpg or whatever. What do you think?

-------------
Is Beezer gonna have to choke Google Adsense?

Post #13971
Posted Wednesday, March 05, 2008 8:36 AM


Progenic Crew

Progenic Crew

Group: Administrators
Last Login: Yesterday @ 3:49 PM
Posts: 2,386, Visits: 37,335
You'd find it extremely counter productive doing it like that for most sql queries especially searching.

 
Post #13972
Posted Thursday, March 06, 2008 5:38 AM


Progenic Family

Progenic Family

Group: Old Skool
Last Login: Today @ 4:57 AM
Posts: 1,073, Visits: 2,301
Hrmm...I think it would be more organized though.
And I'd have the pull down system for manufacturer which then loads the pull down for model.

So the SQL query would search manid (manufacturer) and corresponding modelid table.

-------------
Is Beezer gonna have to choke Google Adsense?
Post #13980
Posted Thursday, March 06, 2008 11:58 AM


Progenic Crew

Progenic Crew

Group: Administrators
Last Login: Today @ 2:42 AM
Posts: 901, Visits: 5,294
Don't even think about making tables for specific models, makes or any of the kind. Infact, run by whatever (relational) database model you come up with in here, it sounds like (I mean no offense) you have a few crossroads you could go wrong at.

As for the images, a good `best of both worlds` solution could be:

1. Store the images in the database (blob)

2. Image gets requested, you fetch it from the database and write it to disk

3. Future requests for that image get served from disk

Post #13985
« Prev Topic | Next Topic »

««123»»

Re