how to i get all the table values from when row is selected from another table












0















I am making a ecommerce website and I am not able to fix this problem from a long time. From a cart.jsp file there will be many products and when I check out it shows the additional information(productorder table).when I select the id in the productorder table it should show me all the values different/(causel_shirt table) when I selected a different row from a productorder.jsp



1st table:productoder



        CREATE TABLE `productorder` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fullname` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
PRIMARY KEY (id),
);


2nd table :causel_shirt



  CREATE TABLE `causel_shirt` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`productname` varchar(255) NOT NULL,
`productslogan` varchar(255) NOT NULL,
`productprice` varchar(255) NOT NULL,
`productsize` varchar(255) NOT NULL,
`productdetails` varchar(255) NOT NULL,
`completethelook` varchar(255) NOT NULL,
`productcode` int(255) NOT NULL,
`productbrand` varchar(255) NOT NULL,
`sellername` varchar(255) NOT NULL,
`selleraddress` varchar(255) NOT NULL,
`productdiscount` varchar(3) NOT NULL,
PRIMARY KEY (id),
)


*this is my concept hope it will work or If you have any idea related to this then reply with your opinions










share|improve this question

























  • Please google JOIN; you will find a lot of tutorials on the same. What is the purpose of causel_shirt table ? On a different note, why are you creating an ecommerce website on your own ? It is better to use some of the already existing open source projects; because developing a fully functional (and business wise operating) ecommerce website is atleast one man-year effort.

    – Madhur Bhaiya
    Nov 14 '18 at 11:28











  • @MadhurBhaiya can you send me the sql of join

    – Aayush Kc
    Nov 14 '18 at 11:34


















0















I am making a ecommerce website and I am not able to fix this problem from a long time. From a cart.jsp file there will be many products and when I check out it shows the additional information(productorder table).when I select the id in the productorder table it should show me all the values different/(causel_shirt table) when I selected a different row from a productorder.jsp



1st table:productoder



        CREATE TABLE `productorder` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fullname` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
PRIMARY KEY (id),
);


2nd table :causel_shirt



  CREATE TABLE `causel_shirt` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`productname` varchar(255) NOT NULL,
`productslogan` varchar(255) NOT NULL,
`productprice` varchar(255) NOT NULL,
`productsize` varchar(255) NOT NULL,
`productdetails` varchar(255) NOT NULL,
`completethelook` varchar(255) NOT NULL,
`productcode` int(255) NOT NULL,
`productbrand` varchar(255) NOT NULL,
`sellername` varchar(255) NOT NULL,
`selleraddress` varchar(255) NOT NULL,
`productdiscount` varchar(3) NOT NULL,
PRIMARY KEY (id),
)


*this is my concept hope it will work or If you have any idea related to this then reply with your opinions










share|improve this question

























  • Please google JOIN; you will find a lot of tutorials on the same. What is the purpose of causel_shirt table ? On a different note, why are you creating an ecommerce website on your own ? It is better to use some of the already existing open source projects; because developing a fully functional (and business wise operating) ecommerce website is atleast one man-year effort.

    – Madhur Bhaiya
    Nov 14 '18 at 11:28











  • @MadhurBhaiya can you send me the sql of join

    – Aayush Kc
    Nov 14 '18 at 11:34
















0












0








0








I am making a ecommerce website and I am not able to fix this problem from a long time. From a cart.jsp file there will be many products and when I check out it shows the additional information(productorder table).when I select the id in the productorder table it should show me all the values different/(causel_shirt table) when I selected a different row from a productorder.jsp



1st table:productoder



        CREATE TABLE `productorder` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fullname` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
PRIMARY KEY (id),
);


2nd table :causel_shirt



  CREATE TABLE `causel_shirt` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`productname` varchar(255) NOT NULL,
`productslogan` varchar(255) NOT NULL,
`productprice` varchar(255) NOT NULL,
`productsize` varchar(255) NOT NULL,
`productdetails` varchar(255) NOT NULL,
`completethelook` varchar(255) NOT NULL,
`productcode` int(255) NOT NULL,
`productbrand` varchar(255) NOT NULL,
`sellername` varchar(255) NOT NULL,
`selleraddress` varchar(255) NOT NULL,
`productdiscount` varchar(3) NOT NULL,
PRIMARY KEY (id),
)


*this is my concept hope it will work or If you have any idea related to this then reply with your opinions










share|improve this question
















I am making a ecommerce website and I am not able to fix this problem from a long time. From a cart.jsp file there will be many products and when I check out it shows the additional information(productorder table).when I select the id in the productorder table it should show me all the values different/(causel_shirt table) when I selected a different row from a productorder.jsp



1st table:productoder



        CREATE TABLE `productorder` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fullname` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
PRIMARY KEY (id),
);


2nd table :causel_shirt



  CREATE TABLE `causel_shirt` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`productname` varchar(255) NOT NULL,
`productslogan` varchar(255) NOT NULL,
`productprice` varchar(255) NOT NULL,
`productsize` varchar(255) NOT NULL,
`productdetails` varchar(255) NOT NULL,
`completethelook` varchar(255) NOT NULL,
`productcode` int(255) NOT NULL,
`productbrand` varchar(255) NOT NULL,
`sellername` varchar(255) NOT NULL,
`selleraddress` varchar(255) NOT NULL,
`productdiscount` varchar(3) NOT NULL,
PRIMARY KEY (id),
)


*this is my concept hope it will work or If you have any idea related to this then reply with your opinions







mysql






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 11:25







Aayush Kc

















asked Nov 14 '18 at 11:20









Aayush KcAayush Kc

12




12













  • Please google JOIN; you will find a lot of tutorials on the same. What is the purpose of causel_shirt table ? On a different note, why are you creating an ecommerce website on your own ? It is better to use some of the already existing open source projects; because developing a fully functional (and business wise operating) ecommerce website is atleast one man-year effort.

    – Madhur Bhaiya
    Nov 14 '18 at 11:28











  • @MadhurBhaiya can you send me the sql of join

    – Aayush Kc
    Nov 14 '18 at 11:34





















  • Please google JOIN; you will find a lot of tutorials on the same. What is the purpose of causel_shirt table ? On a different note, why are you creating an ecommerce website on your own ? It is better to use some of the already existing open source projects; because developing a fully functional (and business wise operating) ecommerce website is atleast one man-year effort.

    – Madhur Bhaiya
    Nov 14 '18 at 11:28











  • @MadhurBhaiya can you send me the sql of join

    – Aayush Kc
    Nov 14 '18 at 11:34



















Please google JOIN; you will find a lot of tutorials on the same. What is the purpose of causel_shirt table ? On a different note, why are you creating an ecommerce website on your own ? It is better to use some of the already existing open source projects; because developing a fully functional (and business wise operating) ecommerce website is atleast one man-year effort.

– Madhur Bhaiya
Nov 14 '18 at 11:28





Please google JOIN; you will find a lot of tutorials on the same. What is the purpose of causel_shirt table ? On a different note, why are you creating an ecommerce website on your own ? It is better to use some of the already existing open source projects; because developing a fully functional (and business wise operating) ecommerce website is atleast one man-year effort.

– Madhur Bhaiya
Nov 14 '18 at 11:28













@MadhurBhaiya can you send me the sql of join

– Aayush Kc
Nov 14 '18 at 11:34







@MadhurBhaiya can you send me the sql of join

– Aayush Kc
Nov 14 '18 at 11:34














0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53299030%2fhow-to-i-get-all-the-table-values-from-when-row-is-selected-from-another-table%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53299030%2fhow-to-i-get-all-the-table-values-from-when-row-is-selected-from-another-table%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python