//flex table opened by JP

Click to See Complete Forum and Search --> : how to pass the data from mysql database to a popup window


lucyoop
12-09-2003, 10:09 AM
I have a mysql database called Classifieds. It has all kinds of information, such as order number, request date, requestor info, ad title, ad text and payment info.

I use a php page to extract some data from database, but for some data I want use pop-up window to show the detail inormation. For example, the php page only show the important data, ad title, ad text. for the requestor info, I made it a link. If I click the requestor info, then a pop up window will come out to the detail requestor info for the specific record including requestor name, phone, email.

My problem is I don't know the data to the pop up windows.

Anybody has any idea? Thanks in advance.

Dark_Raver
12-11-2003, 07:09 PM
you can make the page in the popup a php page as well and use get or post data.

get might be easier because you can just form url in hte popup and not have to create forms in the html.

make the url in your popup end with
popup_page.php?details_id=data

in the actual popup_page.php you can simply call
id = $_GET["details_id"];
this will give you the id of the record you want and can display data accordingly.

if you need more clarification, just let me know.

DR

lucyoop
12-11-2003, 09:51 PM
Thank you very much, Dark. You are always so helpful. In fact, I figured it out today by myself. I used the way just like your way. Thanks again. Have a nice holiday season.:-@