j5646w Posted April 27, 2011 Share Posted April 27, 2011 Hi there (I'm new at PHP/mysql) I am busy with a project - I maneged to load info into the mysql database and display the results BUT - now I need some Help I can display the result - now I want to have the ability to click on the result and it must open a new page with only the selected result information? Link to comment https://forums.phpfreaks.com/topic/234844-display-result-in-new-window/ Share on other sites More sharing options...
Muddy_Funster Posted April 27, 2011 Share Posted April 27, 2011 What part of that is causing the problem? Link to comment https://forums.phpfreaks.com/topic/234844-display-result-in-new-window/#findComment-1206830 Share on other sites More sharing options...
j5646w Posted April 27, 2011 Author Share Posted April 27, 2011 Everything Do I use <a href="/petonline.co.za/data/imagedisplay.php?"$user_uid"="$uidadd"">More Info</a> - but this doesnt work? I tried to google it but I can find a manual for dummies! Link to comment https://forums.phpfreaks.com/topic/234844-display-result-in-new-window/#findComment-1206834 Share on other sites More sharing options...
Muddy_Funster Posted April 27, 2011 Share Posted April 27, 2011 You would need something more like: while ($row = mysql_fetch_assoc($result){ echo'<a href="/petonline.co.za/data/imagedisplay.php?id='.$user_uid.'&add='.$uidadd.'" target="_blank">More Info</a>'; } then on imagedisplay.php <php $user_id = $_GET['id']; $uidadd = $_GET['add']; //rest of page code Link to comment https://forums.phpfreaks.com/topic/234844-display-result-in-new-window/#findComment-1206845 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.