Originally posted by manoj semwal:
Hai .....
i am doing shopping cart project the project is almost done but i have little proble after selecting the item the user's information and item information should be submit in database how can i submit it in database database is like that ..
user information name,allthose thing and product informtaion is like productId booksname,Qu,Price like that if user purchased 5 diffeent book .
so how can i enter the entries in same user name.
pl help.
I beg your pardon? :roll: Lots of people can't spell.Originally posted by Cedric Meury:
Man, learn how to spell properly.
Is that supposed to be a description of your database schema? I don't see any table which contains user ID and product ID. You would need such a table if you wanted to keep track of which users purchased which books.Originally posted by manoj semwal:
like that .. user information name,allthose thing and product informtaion is like productId booksname,Qu,Price like that
Originally posted by Campbell Ritchie:
I beg your pardon?Lots of people can't spell.
[name of the table]
-------------------
[Field Name]
[Field Name]
Agree. In Orders you would have foreign keys linked to the User and Book tables.Originally posted by Cedric Meury:
From the point of database design, it seems to me that three separate tables (Users, Orders, Books) could be very helpful.
Please don't use e-mail. The idea of a forum is that everybody can take part in the discussion. Please post what you sent here. Then you will get more useful comments.Originally posted by manoj semwal:
hai campbell
i sent to you a mail regarding the problem pl find the mail.
also sent to muery
pl check it
Originally posted by manoj Rksh:
how can i insert the query productid quantity and price in database orderinfo, where productid is array variable and price and quantity also.
I am finding your query difficult to understand.Originally posted by manoj Rksh:
saiffudin
here productid having more than one value so iam using here array value here. also same in quantity and price.
still my problem is not solved.
simply i want to know how to insert the three array value in database in single insert command .
how can i use for loop for productid,quantity,and price.
pl help
Poop goes in a willow feeder. Wipe with this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
|