Jump to content

Display result in new window


j5646w

Recommended Posts

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?

 

:confused:

Link to comment
https://forums.phpfreaks.com/topic/234844-display-result-in-new-window/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.