Jump to content

MYSQL results in a popup and return and ID


Jeff_Steinkamp

Recommended Posts

I am quite new at this PHP thing, although I am an experienced programmer from the days of FORTRAN, Assembler and such. I have been tasked to finish/repair a bunch of code that was created by a former developer who is no long among the living. One of the first things I need to fix is the ability to display a popup box with MySQL query results when the row count is greater that one so the user can select one of the results and return the ID of that result back to the calling script. A few pointers in the right direction would be most appreciated.

Link to comment
Share on other sites

And what start have you got?

 

The popup...

A proper looking popup would be using javascript in the client browser, but overlaying a div (maybe using JQuery, etc) will give you more control over style.

 

You'd populate the data serverside and either send it out on the page request or by some AJAX connection...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.