fatshady
09-12-2003, 05:07 AM
I am gonna start writing an online shop for a new business I am starting, building and supplying computers and components. I'm doing it using a PHP/MySQL base. I need some advice on the SQL layout. I am stuck between two options.
One is to create one huge table, with all components and details of each of them, but there is going to be a lot of empty columns (infact most will be empty on most rows)
The other is to use many smaller tables - which means none of them will have empty values, but means that the database defines the logic rather than PHP - which I have been told is a bad thing.
My current website (see sig) uses sql and php quite well, and the coding is quite slick (so I've been told by someone whose been using it a lot longer than me).
Can I have some suggestions for the best way of doing it plz..?
One is to create one huge table, with all components and details of each of them, but there is going to be a lot of empty columns (infact most will be empty on most rows)
The other is to use many smaller tables - which means none of them will have empty values, but means that the database defines the logic rather than PHP - which I have been told is a bad thing.
My current website (see sig) uses sql and php quite well, and the coding is quite slick (so I've been told by someone whose been using it a lot longer than me).
Can I have some suggestions for the best way of doing it plz..?