diasansley Posted December 27, 2010 Share Posted December 27, 2010 hi all I have a table which i have got results from a database. My question If i want to display the details of a particular row. How do I do that? Thanks Rgds Quote Link to comment https://forums.phpfreaks.com/topic/222710-showing-details-of-a-row/ Share on other sites More sharing options...
mmarif4u Posted December 27, 2010 Share Posted December 27, 2010 <a href='detail.php?id=$id'>$productname</a> And retrieve the data for id on detail.php page. detail.php if($_GET['id'] != '') { $id = $_GET['id']; } $query = "select product,date,name,price from table where id='$id'"; //Do other mysql stuff and show the records This is just an example to get you started. Quote Link to comment https://forums.phpfreaks.com/topic/222710-showing-details-of-a-row/#findComment-1151703 Share on other sites More sharing options...
Pikachu2000 Posted December 27, 2010 Share Posted December 27, 2010 Explain what you mean by details . . . Quote Link to comment https://forums.phpfreaks.com/topic/222710-showing-details-of-a-row/#findComment-1151704 Share on other sites More sharing options...
revraz Posted December 27, 2010 Share Posted December 27, 2010 I would suggest doing a PHP/MySQL Tutorial, that should answer your questions. Quote Link to comment https://forums.phpfreaks.com/topic/222710-showing-details-of-a-row/#findComment-1151709 Share on other sites More sharing options...
diasansley Posted December 27, 2010 Author Share Posted December 27, 2010 It is a open cart project!! the query data is passed to the .tpl to display. and i have given a href as <A href="http://localhost/upload_6dec/index.php?route=common/vodafone">details there are various products displayed in the table. the above link appears on each row. when i click on details it should take me to that particular product detail. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/222710-showing-details-of-a-row/#findComment-1151710 Share on other sites More sharing options...
diasansley Posted December 27, 2010 Author Share Posted December 27, 2010 can any1 please give me some more leads thanks Quote Link to comment https://forums.phpfreaks.com/topic/222710-showing-details-of-a-row/#findComment-1151740 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.