Download Merchandise System [closed] - mysql

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Hey Everyone my system is selling kits for each kit it compose of different products all of them are downloaded files. my problem is where would i place the products of each kit.
Sample KIT1 compose of game1, game2, game3, game4
PRODUCT TABLE
PRODUCTID: 1 SKU: NAME:Kit100
where would I Place game1, game2, game3, game4

According to what you just said,
You want a KIT table
You want a PRODUCT table
And to link them together, you need a KIT_ITEM or KIT_PRODUCT table to itemize the individual items/products within each Kit.
To be honest I'd name the top-level entity the customer buys (you called it a Kit) as a Product, and I'd name the parts as Components.
Products in normal business English, are individually purchasable.
You could also make a KIT_PRODUCT which is made up of 0..* "component" Products.

Related

Mysql database structure for realestate directory [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I really need help to make a decision.
I'm working on a real estate online directory.
People can add their property in several categories like apartment, land, shop ... and each category has its features that some of them are shared between categories like City but some others are unique or shared between 2 or 3 categories like "number of rooms".
So i have three solution :
keep shared features in one table and put others in an other table in meta_key - meta_value format like tagging system.(seem reasonable)
Put all features in one table.(dirty)
Put each category in separate table (this is worst idea).
The site will serve too many searches. but most of them are based on shared features.
which solution looks better?
Why wouldn't you just create a table of the properties and then tie them together in a table like so:
Categoryid | PropertyID
Also making both columns a composite unique identifier will prevent from duplicate occuring with the table. This allows you to create unlimited properties and assign them to any category.

Is it a bad practice to display a detailed information about a record in table [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I like to use tables as it will allow me to organize the data in a better manner. But now inside my application I am using tables to represents different data which can give misleading meaning. for example I am displaying the list of all record in a table such as:-
Then I am also displaying the details of each record in a table where rows will have different context:-
For me the tables seems clear ,, but am I using tables in the right context?. Or usually table rows should represents the same type of objects (for example different organizations, not different properties about an organization )? ?
Well. Most systems show information using tables. Look at any forum software, for instance. In terms of user-friendliness, you could emphasize your header rows on your top table. On your bottom table, you could emphasize the left row (a darker background or stronger font).
In my opinion using tables in this scenery is ok. All data is exhibited in simple and clear way.

Open Graph - Muliple Objects on same action [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am trying to figure out a way to implement og action for an e-commerce site. Action would be like "Buy a Product" but usually people buys multiple products at a time by Adding different items to Cart. I do not want to show as "Jack bought xx, Jack bought yy,etc.." instead I would like to have an action like "complete purchase" where purchase is an object that might have multiple items. Any idea appreciated.
I do not want to show as "Jack bought xx, Jack bought yy,etc.."
Why not? You could suppress the feed story that publishing an action creates for all but the first one, and multiple actions of the same type should “fold” nicely when they are displayed on the user’s timeline, like “John Doe bought Foobar and 16 other Products at …”
Your other option would be to make purchase your object that the action is taken upon (as you already said), and then have custom properties for this object, which “link” it to other items of the type product. But AFAIK the number of these custom properties can not be dynamic, so you’d have to agree on a maximum number of products a purchase can contain before, which is probably not so nice. But you could set up purchase as an object that links to a page of your own that displays all products bought, and have the purchase object only contain the first (cheapest/most expensive/…) X of those as custom properties.

displaying testimonial in homepage [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
i have created a testimonial table in database .i have inserted three testimonials. I want to show one testimonial per day.is there any good tutorial for doing this ?
CREATE TABLE customer_testimonials
( testimonial_id integer unsigned NOT NULL auto_increment PRIMARY KEY,
testimonial_text varchar(50) NOT NULL
);
You can achive this by a scheduled task. Write a (php, bash, ??) script to get max id of testimonials, generate a random number smaller than max id and writes this to the file, then run this script once for 24 hours. In your web page, always read this file to take testimonial id and query your table to get this testimonial. With this approach, you will be able to show one testimonial per day.
If you are using linux you can schedule this task by crontab.
http://adminschoice.com/crontab-quick-reference
http://php.net/manual/en/book.mysql.php
http://php.net/manual/en/function.rand.php
http://php.net/manual/en/function.fwrite.php
.
.
.

ebay query into mysql? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to know if it is possible,
To extract the userid from an ebay page and insert it into mysql as part of an insert statement? Otherwise what would be the best way to do this?
I have files to import, which contain hundred of ebay auction urls, and I must grab the seller id from each one. Is there an easier way to do this than what I am suggesting?
You could use the eBay API for that. The URL for each page contains an item number, and that can be used to query eBay for the seller id.
eBay Hacks Item 109 gives some PHP example code to do what you need (and more).