I've got a table that shows details about some products, which are stored in the database. These details are Item Name, Price and submit Date.
Item Name Price Submitted on Laptop £30 12/04/10 guitar £5 12/05/10
If I click on Laptop I want to see all details such as Title, Price, Description, Picture, Contact name and email (all details are stored in the database) in a new windows.
I hope you undestand my question
Here is how you open a link in a new window.
<a href="detailsPage.php?itemID=1234" target="_blank">Name of your Product</a>
This doesn't really have anything to do with PHP or MySQL.
Depending on the version of (X)HTML you're using you can either set the target attribute on the link...
<a href="..." target="_blank">...</a>
You don't need java script or PHP.
This can be achieved by HTML.
<a href="xyz.php" target="_blank">Product</a>
target="_blank" is a attribute of <a> tag. Using this link can be opened in new window.
©2020 All rights reserved.